logbot: Unknown timezone error #31

Closed
opened 2022-04-07 16:27:53 +02:00 by mb · 1 comment
Traceback (most recent call last):
  File "/srv/gitea/clones/bots/.venv/lib/python3.7/site-packages/xbotlib.py", line 645, in group_message
    self.group(message)
  File "logbot.py", line 222, in group
    self._add_to_db(message)
  File "logbot.py", line 127, in _add_to_db
    date = datetime.now(pytz.timezone(local_timezone)).strftime("%a, %d %b %Y %H:%M:%S %Z") # logs are saved with local timezone
  File "/srv/gitea/clones/bots/.venv/lib/python3.7/site-packages/pytz/__init__.py", line 188, in timezone
    raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: 'CEST'
``` Traceback (most recent call last): File "/srv/gitea/clones/bots/.venv/lib/python3.7/site-packages/xbotlib.py", line 645, in group_message self.group(message) File "logbot.py", line 222, in group self._add_to_db(message) File "logbot.py", line 127, in _add_to_db date = datetime.now(pytz.timezone(local_timezone)).strftime("%a, %d %b %Y %H:%M:%S %Z") # logs are saved with local timezone File "/srv/gitea/clones/bots/.venv/lib/python3.7/site-packages/pytz/__init__.py", line 188, in timezone raise UnknownTimeZoneError(zone) pytz.exceptions.UnknownTimeZoneError: 'CEST' ```
Author

Resolved the error, see 327e3496e3

Resolved the error, see https://git.vvvvvvaria.org/varia/bots/commit/327e3496e320e66cc4b774a576e0ae4b5276840e
mb closed this issue 2022-04-07 16:32:18 +02:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: varia/bots#31
No description provided.