Skip to content

Commit

Permalink
fix: ai_news.json FileNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
Qetesh committed Dec 14, 2024
1 parent 8589cb0 commit ce62943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myapp/ai_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def miniflux_ai_news():
with open('ai_news.json', 'r') as file:
ai_news = json.load(file)
except FileNotFoundError:
pass
ai_news = ''
except Exception as e:
logger.error(e)

Expand Down

0 comments on commit ce62943

Please sign in to comment.