Skip to content

Commit

Permalink
🔊 Add some better logging for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jh0ker committed Nov 15, 2023
1 parent 94f10c7 commit 240fbd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ddj_cloud/scrapers/talsperren/talsperren.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from io import BytesIO
from traceback import print_exc

import pandas as pd
import datetime as dt
Expand Down Expand Up @@ -50,7 +50,7 @@ def _get_base_dataset():
data.extend(federation.get_data(start=start))
except Exception as e:
print("Skipping federation due to error:")
print(e)
print_exc()
sentry_sdk.capture_exception(e)

# Parse into data frame
Expand Down Expand Up @@ -136,5 +136,5 @@ def run():
)
except Exception as e:
print("Skipping exporter due to error:")
print(e)
print_exc()
sentry_sdk.capture_exception(e)

0 comments on commit 240fbd2

Please sign in to comment.