增加错误信息打印

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
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.show()
return codexy()
except:
pass
except Exception as e:
print(e)
def codexy(Ofset=None, is_raw_input=True):