Private
Public Access
1
0
This commit is contained in:
2024-12-26 15:23:53 +01:00
parent dd14f1eef7
commit 930bbc9c9c

View File

@@ -40,7 +40,7 @@ def idoklad_token():
token = iDokladToken.objects.all().order_by('-updated_at')[0]
except iDokladToken.DoesNotExist:
return None
except KeyError:
except IndexError:
return None
if token.updated_at + datetime.timedelta(seconds=token.expires_in) < timezone.now():