Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openidc_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def _refresh_token(self, uuid):
:returns: True if the token was succesfully refreshed, False otherwise
"""
oldtoken = self._cache[uuid]
if not oldtoken['refresh_token']:
if not oldtoken.get('refresh_token'):
self.debug("Unable to refresh: no refresh token present")
return False
self.debug('Refreshing token %s', uuid)
Expand Down