Fix freezing issue at startup

This commit is contained in:
angelblue05 2017-10-10 00:40:20 -05:00
parent 1b0c8e34f3
commit a3d996bc6c

View file

@ -141,7 +141,7 @@ class Credentials(object):
def _dateObject(self, date): def _dateObject(self, date):
# Convert string to date # Convert string to date
try: try:
date_obj = datetime.strptime(date, "%Y-%m-%dT%H:%M:%SZ") date_obj = time.strptime(date, "%Y-%m-%dT%H:%M:%SZ")
except (ImportError, TypeError): except (ImportError, TypeError):
# TypeError: attribute of type 'NoneType' is not callable # TypeError: attribute of type 'NoneType' is not callable
# Known Kodi/python error # Known Kodi/python error