Skip to content

Commit

Permalink
Log the entire stack-trace upon every exception which is caught only …
Browse files Browse the repository at this point in the history
…in the outer-most layer (i.e, in the main loop)
  • Loading branch information
barak manos committed Jan 21, 2024
1 parent 2e13a2b commit 6f0b343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import os, sys
import time
from typing import List
from traceback import format_exc

import click
import pandas as pd
Expand Down Expand Up @@ -842,7 +843,7 @@ def run(
)

except Exception as e:
mgr.cfg.logger.error(f"Error in main loop: {e}")
mgr.cfg.logger.error(f"Error in main loop: {format_exc()}")
mgr.cfg.logger.error(
f"[main] Error in main loop: {e}. Continuing... "
f"Please report this error to the Fastlane Telegram channel if it persists."
Expand Down

0 comments on commit 6f0b343

Please sign in to comment.