aughh sentryyyyy
This commit is contained in:
parent
ec75fbaf10
commit
109cbf31d9
|
@ -84,14 +84,8 @@ def get_api_for_acc(account):
|
||||||
tl = api.timeline()
|
tl = api.timeline()
|
||||||
if 'error' in tl:
|
if 'error' in tl:
|
||||||
if sentry:
|
if sentry:
|
||||||
sentry.client.capture(
|
sentry.captureMessage(
|
||||||
'lib.mastodon.creds_error',
|
'Mastodon auth revoked or incorrect', extra=locals())
|
||||||
stack=True,
|
|
||||||
data=dict(
|
|
||||||
locals=locals(),
|
|
||||||
account=account,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
db.session.delete(token)
|
db.session.delete(token)
|
||||||
continue
|
continue
|
||||||
return api
|
return api
|
||||||
|
|
|
@ -81,14 +81,8 @@ def get_twitter_for_acc(account):
|
||||||
# token revoked
|
# token revoked
|
||||||
|
|
||||||
if sentry:
|
if sentry:
|
||||||
sentry.client.capture(
|
sentry.captureMessage(
|
||||||
'lib.twitter.creds_error',
|
'Twitter auth revoked', extra=locals())
|
||||||
stack=True,
|
|
||||||
data=dict(
|
|
||||||
locals=locals(),
|
|
||||||
account=account,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
db.session.delete(token)
|
db.session.delete(token)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue