0.3.13.1
This commit is contained in:
parent
712f601e9c
commit
1a1bfdfbab
5 changed files with 12 additions and 6 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 0.3.13.1
|
||||
|
||||
- Fix mutual exclusive exception for email settings
|
||||
- Temporarly set exception level for StreamDeniedException exceptions
|
||||
|
||||
## 0.3.13
|
||||
|
||||
- Update django to 3.2
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "newsreader",
|
||||
"version": "0.3.13",
|
||||
"version": "0.3.13.1",
|
||||
"description": "Application for viewing RSS feeds",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "newsreader"
|
||||
version = "0.3.13"
|
||||
version = "0.3.13.1"
|
||||
description = "Webapplication for reading RSS feeds"
|
||||
authors = ["Sonny <sonnyba871@gmail.com>"]
|
||||
license = "GPL-3.0"
|
||||
|
|
|
|||
|
|
@ -55,8 +55,8 @@ EMAIL_PORT = os.environ.get("EMAIL_PORT", 25)
|
|||
EMAIL_HOST_USER = os.environ.get("EMAIL_HOST_USER", "")
|
||||
EMAIL_HOST_PASSWORD = os.environ.get("EMAIL_HOST_PASSWORD", "")
|
||||
|
||||
EMAIL_USE_TLS = os.environ.get("EMAIL_USE_TLS", False)
|
||||
EMAIL_USE_SSL = os.environ.get("EMAIL_USE_SSL", False)
|
||||
EMAIL_USE_TLS = bool(os.environ.get("EMAIL_USE_TLS"))
|
||||
EMAIL_USE_SSL = bool(os.environ.get("EMAIL_USE_SSL"))
|
||||
|
||||
# Reddit integration
|
||||
REDDIT_CLIENT_ID = os.environ.get("REDDIT_CLIENT_ID", "")
|
||||
|
|
|
|||
|
|
@ -234,8 +234,9 @@ class TwitterClient(PostClient):
|
|||
|
||||
break
|
||||
except StreamDeniedException as e:
|
||||
logger.warning(
|
||||
f"Access token expired for user {stream.rule.user.pk}"
|
||||
logger.exception(
|
||||
f"Access token expired for user {stream.rule.user.pk}",
|
||||
extra={"content": e.response.content} if e.response else {},
|
||||
)
|
||||
|
||||
stream.rule.user.twitter_oauth_token = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue