0.3.13.5
This commit is contained in:
parent
8af8dab6db
commit
d89e1bc6d4
5 changed files with 10 additions and 6 deletions
|
|
@ -42,7 +42,9 @@ class ResponseHandler:
|
|||
stream_exception = StreamException
|
||||
|
||||
message = getattr(exception, "message", str(exception))
|
||||
raise stream_exception(exception.response, message=message) from exception
|
||||
raise stream_exception(
|
||||
response=exception.response, message=message
|
||||
) from exception
|
||||
|
||||
def __exit__(self, *args, **kwargs):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -242,9 +242,7 @@ class TwitterClient(PostClient):
|
|||
import sentry_sdk
|
||||
|
||||
with sentry_sdk.push_scope() as scope:
|
||||
if e.response:
|
||||
scope.set_extra("content", e.response.content)
|
||||
|
||||
scope.set_extra("content", e.response.content)
|
||||
sentry_sdk.capture_message(
|
||||
"Twitter authentication credentials reset"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue