Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
atom-tr committed Oct 13, 2023
1 parent 61c1f7a commit dda00c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ def main():
if __name__ == '__main__':
start_time = datetime.now()
logger.g("Program execution started at $date.", date=start_time)
try: main()
except Exception as e: logger.p("Program execution failed with error: $error.", error=e)
try:
main()
except Exception as e:
logger.p("Program execution failed with error: $error.", error=e)
end_time = datetime.now()
logger.g("Program execution finished at $date.", date=end_time)
logger.p("Program finished in $time.", time=end_time - start_time)

0 comments on commit dda00c2

Please sign in to comment.