Skip to content

Commit

Permalink
Be compatible with "python-dateutil==2.8.0" because of Anaconda
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed May 30, 2020
1 parent 6ab0161 commit 8df0f3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions CHANGES.rst
@@ -1,11 +1,16 @@
####################
dwdweather changelog
####################
#####################
dwdweather2 changelog
#####################

in progress
===========


2020-05-30 0.12.1
=================
- Be compatible with ``python-dateutil==2.8.0``, which is still the
default release for all Anaconda installations. Thanks, @mmaelicke!

2020-03-23 0.12.0
=================
- Improve error logging
Expand Down
4 changes: 2 additions & 2 deletions dwdweather/core.py
Expand Up @@ -15,7 +15,7 @@
from tqdm import tqdm
from copy import deepcopy
from datetime import datetime
from dateutil.parser import parse as parsedate, ParserError
from dateutil.parser import parse as parsedate

from dwdweather.client import DwdCdcClient
from dwdweather.knowledge import DwdCdcKnowledge
Expand Down Expand Up @@ -447,7 +447,7 @@ def import_measures_textfile(self, result):
timestamp_datetime = parsedate(timestamp_sanitized, ignoretz=True)
timestamp = int(timestamp_datetime.strftime(self.get_timestamp_format()))

except ParserError as ex:
except Exception as ex:
log.error('Parsing timestamp "{}" failed: {}'.format(timestamp_sanitized, ex))
continue

Expand Down

0 comments on commit 8df0f3d

Please sign in to comment.