aughh sentryyyyy
This commit is contained in:
parent
ec75fbaf10
commit
109cbf31d9
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue