Skip to content

Commit 5a1cdc2

Browse files
authored
Update schedule.py
1 parent bf32687 commit 5a1cdc2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

schedule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343

4444
if now.tm_hour == END_HOUR and now.tm_min == END_MIN and now.tm_mday == END_DAY:
4545
break
46-
except:
46+
except Exception as e:
4747
file = open("error.log", "a")
4848
file.write("%02d:%02d " % (now.tm_hour, now.tm_min) + str(sys.exc_info()[0]) + "\n")
49+
file.write(str(e))
4950
file.close()

0 commit comments

Comments
 (0)