We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf32687 commit 5a1cdc2Copy full SHA for 5a1cdc2
1 file changed
schedule.py
@@ -43,7 +43,8 @@
43
44
if now.tm_hour == END_HOUR and now.tm_min == END_MIN and now.tm_mday == END_DAY:
45
break
46
- except:
+ except Exception as e:
47
file = open("error.log", "a")
48
file.write("%02d:%02d " % (now.tm_hour, now.tm_min) + str(sys.exc_info()[0]) + "\n")
49
+ file.write(str(e))
50
file.close()
0 commit comments