From 109cbf31d95ba227b4c349c901fb9616bee47baa Mon Sep 17 00:00:00 2001 From: codl Date: Sat, 2 Sep 2017 14:50:03 +0200 Subject: [PATCH] aughh sentryyyyy --- lib/mastodon.py | 10 ++-------- lib/twitter.py | 10 ++-------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/lib/mastodon.py b/lib/mastodon.py index 0095b86..c8c6d79 100644 --- a/lib/mastodon.py +++ b/lib/mastodon.py @@ -84,14 +84,8 @@ def get_api_for_acc(account): tl = api.timeline() if 'error' in tl: if sentry: - sentry.client.capture( - 'lib.mastodon.creds_error', - stack=True, - data=dict( - locals=locals(), - account=account, - ) - ) + sentry.captureMessage( + 'Mastodon auth revoked or incorrect', extra=locals()) db.session.delete(token) continue return api diff --git a/lib/twitter.py b/lib/twitter.py index 894b7d5..aaa8d27 100644 --- a/lib/twitter.py +++ b/lib/twitter.py @@ -81,14 +81,8 @@ def get_twitter_for_acc(account): # token revoked if sentry: - sentry.client.capture( - 'lib.twitter.creds_error', - stack=True, - data=dict( - locals=locals(), - account=account, - ) - ) + sentry.captureMessage( + 'Twitter auth revoked', extra=locals()) db.session.delete(token) db.session.commit() else: