Skip to content

Commit

Permalink
Suppress lang not found error for 'en' as it's built-in
Browse files Browse the repository at this point in the history
closes #65
  • Loading branch information
gmt2001 committed Mar 24, 2023
1 parent 10ec692 commit 352c5d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyouroboros/notifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def __init__(self, config, data_manager):
language.install()
self._ = language.gettext
except FileNotFoundError:
self.logger.error("Can't find the '%s' language", self.config.language)
if not self.config.language == 'en':
self.logger.error("Can't find the '%s' language", self.config.language)
self._ = gettext.gettext

def build_apprise(self):
Expand Down

0 comments on commit 352c5d8

Please sign in to comment.