From deffb50ff6b759c9de4f7c5bd850eeaf1c4e94e1 Mon Sep 17 00:00:00 2001 From: timofey Date: Tue, 1 Nov 2022 03:04:57 +0000 Subject: [PATCH] update db --- setup.py | 2 +- v6d0auth/cdb.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 628c4fa..0adc213 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,6 @@ setup( install_requires=[ 'aiohttp', 'PyNaCl~=1.4.0', - 'ptvp35 @ git+https://gitea.parrrate.ru/PTV/ptvp35.git@f3429eb1ebddda9d31c0c8b6a5b780db20896ef0' + 'ptvp35 @ git+https://gitea.parrrate.ru/PTV/ptvp35.git@4a67e2421a81efdb33fa8adf44e747cff7d75787', ] ) diff --git a/v6d0auth/cdb.py b/v6d0auth/cdb.py index 2fb32d4..0fe83c4 100644 --- a/v6d0auth/cdb.py +++ b/v6d0auth/cdb.py @@ -106,6 +106,7 @@ class SignatureRequest(AbstractRequest): return certs.sign(bytes(self._requester)) def _validate(self) -> None: + assert self._approved is not None assert certs.verify(self._approved) == bytes(self._requester) def display(self) -> str: