From a3d996bc6c8938b9776638b299083ff3a6a8c2d0 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 10 Oct 2017 00:40:20 -0500 Subject: [PATCH] Fix freezing issue at startup --- resources/lib/connect/credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/connect/credentials.py b/resources/lib/connect/credentials.py index c5ea3b81..f7f9fa36 100644 --- a/resources/lib/connect/credentials.py +++ b/resources/lib/connect/credentials.py @@ -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