imalplibutil calls strptime with string
datetime.datetime.strptime wants a string object, but we have a bytes object. We need decode it.
This commit is contained in:
parent
d011702b5b
commit
b6cec81090
@ -249,7 +249,7 @@ def Internaldate2epoch(resp):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
# Get the month number
|
# Get the month number
|
||||||
datetime_object = datetime.datetime.strptime(mo.group('mon'), "%b")
|
datetime_object = datetime.datetime.strptime(mo.group('mon').decode('utf-8'), "%b")
|
||||||
mon = datetime_object.month
|
mon = datetime_object.month
|
||||||
|
|
||||||
zonen = mo.group('zonen')
|
zonen = mo.group('zonen')
|
||||||
|
Loading…
Reference in New Issue
Block a user