We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59716dc commit f1d216eCopy full SHA for f1d216e
1 file changed
manage.py
@@ -24,7 +24,9 @@ def signal_handler(signal,frame):
24
25
26
if __name__ == '__main__':
27
- signal.signal(signal.SIGINT,signal_handler)
+ signal.signal(signal.SIGINT, signal_handler)
28
+ if sys.platform == 'win32':
29
+ asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
30
try:
31
if len(sys.argv) < 2:
32
print("""缺少选项!
@@ -71,5 +73,4 @@ def signal_handler(signal,frame):
71
73
migrate 生成表(迁移表)
72
74
update 修改表迁移""")
75
except Exception as e:
- logging.error('发生异常:%s' % str(e))
-
76
+ logging.error('发生异常:%s —— %s' % (e.__class__, str(e)))
0 commit comments