增加错误信息打印

pull/66/head
wenxianping 2018-12-25 14:40:49 +08:00
parent 42cba656e7
commit de76b2c8ab
2 changed files with 3 additions and 3 deletions

View File

@ -10,4 +10,4 @@ RUN pip install --no-cache-dir -r requirements.txt
#EXPOSE 5010 #EXPOSE 5010
WORKDIR /usr/src/app/ WORKDIR /usr/src/app/
CMD [ "python", "start.py" ] CMD [ "python", "run.py" ]

View File

@ -29,8 +29,8 @@ def getRandCode(is_auto_code, auto_code_type, result):
img = Image.open('./tkcode') img = Image.open('./tkcode')
img.show() img.show()
return codexy() return codexy()
except: except Exception as e:
pass print(e)
def codexy(Ofset=None, is_raw_input=True): def codexy(Ofset=None, is_raw_input=True):