Datetime.strptime - NonType error on second use
#14
I also bumped into this on a Jarvis platform just now. Workaround that also worked for me:


Code:
Code:
try:
    datetime.strptime(date_string, format)
except TypeError:
    datetime(*(time.strptime(date_string, format)[0:6]))
Reply


Messages In This Thread
[No subject] - by takoi - 2011-10-23, 12:15
[No subject] - by Eldorado - 2011-10-24, 16:49
Same issue - by shanemeagher - 2011-12-20, 18:21
[No subject] - by Eldorado - 2011-12-20, 18:25
RE: - by Leopold - 2012-10-12, 15:36
[No subject] - by k_zeon - 2011-12-22, 15:29
RE: Datetime.strptime - NonType error on second use - by tmelin - 2016-07-02, 21:29
Logout Mark Read Team Forum Stats Members Help
Datetime.strptime - NonType error on second use1