Fix freezing issue at startup

This commit is contained in:
angelblue05 2017-10-10 00:40:20 -05:00
parent 1b0c8e34f3
commit a3d996bc6c
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class Credentials(object):
def _dateObject(self, date):
# Convert string to date
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):
# TypeError: attribute of type 'NoneType' is not callable
# Known Kodi/python error