Skip to content

Commit 3f3502d

Browse files
author
Maciej Strzelczyk
committed
Update usosapi.py
Compatibility with Python 3.3 fix.
1 parent 342ff67 commit 3f3502d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usosapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_connection(self) -> bool:
160160
anonymous_session = self._service.get_session()
161161
now = anonymous_session.get('services/apisrv/now')
162162
now = now.json()
163-
return bool(re.fullmatch(time_re, now))
163+
return bool(re.match(time_re, now))
164164
except Exception as e:
165165
_LOGGER.debug('Connection test failed: {}'.format(e))
166166
return False

0 commit comments

Comments
 (0)