This commit is contained in:
Sonny Bakker 2021-04-24 21:13:39 +02:00
parent 8af8dab6db
commit d89e1bc6d4
5 changed files with 10 additions and 6 deletions

View file

@ -1,5 +1,9 @@
# Changelog
## 0.3.13.5
- Set response keyword argument
## 0.3.13.4
- Fix import error

View file

@ -1,6 +1,6 @@
{
"name": "newsreader",
"version": "0.3.13.4",
"version": "0.3.13.5",
"description": "Application for viewing RSS feeds",
"main": "index.js",
"scripts": {

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "newsreader"
version = "0.3.13.4"
version = "0.3.13.5"
description = "Webapplication for reading RSS feeds"
authors = ["Sonny <sonnyba871@gmail.com>"]
license = "GPL-3.0"

View file

@ -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

View file

@ -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)
sentry_sdk.capture_message(
"Twitter authentication credentials reset"
)