Skip to content

Commit

Permalink
Cope with other invalid time errors
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Easterbrook <jim@jim-easterbrook.me.uk>
  • Loading branch information
jim-easterbrook committed Mar 27, 2016
1 parent 1393e5b commit c27c690
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pywws/Plot.py
Expand Up @@ -580,7 +580,7 @@ def __init__(self, params, status, raw_data, hourly_data,
def _local_offset(self, time):
try:
result = Local.utcoffset(time)
except pytz.AmbiguousTimeError:
except pytz.InvalidTimeError:
result = Local.utcoffset(time + HOUR)
return result

Expand Down
6 changes: 3 additions & 3 deletions src/pywws/__init__.py
@@ -1,3 +1,3 @@
__version__ = '16.02.0'
_release = '1348'
_commit = '29f5a0a'
__version__ = '16.03.0'
_release = '1349'
_commit = '1393e5b'

0 comments on commit c27c690

Please sign in to comment.