From de76b2c8aba972129d860993a084bf266857fbc6 Mon Sep 17 00:00:00 2001 From: wenxianping <931128603@qq.com> Date: Tue, 25 Dec 2018 14:40:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- inter/GetRandCode.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 477321c..17fd237 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,4 +10,4 @@ RUN pip install --no-cache-dir -r requirements.txt #EXPOSE 5010 WORKDIR /usr/src/app/ -CMD [ "python", "start.py" ] +CMD [ "python", "run.py" ] diff --git a/inter/GetRandCode.py b/inter/GetRandCode.py index 88c812d..49008f5 100644 --- a/inter/GetRandCode.py +++ b/inter/GetRandCode.py @@ -29,8 +29,8 @@ def getRandCode(is_auto_code, auto_code_type, result): img = Image.open('./tkcode') img.show() return codexy() - except: - pass + except Exception as e: + print(e) def codexy(Ofset=None, is_raw_input=True):