Private
Public Access
1
0

bug fix timezone finder

This commit is contained in:
Sander Roosendaal
2020-07-17 10:16:43 +02:00
parent 7ed48f3aa7
commit 21f1b9d59c

View File

@@ -758,7 +758,7 @@ def getpartofday(row,r):
tf = TimezoneFinder()
try:
timezone_str = tf.timezone_at(lng=lonavg, lat=latavg)
except ValueError:
except (ValueError,OverflowError):
timezone_str = 'UTC'
if timezone_str == None:
timezone_str = tf.closest_timezone_at(lng=lonavg,