Skip to content
Snippets Groups Projects
Commit ce55c653 authored by Martin Mareš's avatar Martin Mareš
Browse files

Registrace: Oprava typů

parent 4931984f
Branches
No related tags found
1 merge request!138Zpracování nedoručenek
......@@ -454,10 +454,11 @@ class Reg2:
},
}
def __init__(self, token: str, expected_type: db.RegReqType):
def __init__(self, token: Optional[str], expected_type: db.RegReqType):
self.reg_type = expected_type
self.status = self._parse_token(token)
if self.status == RegStatus.ok:
assert token is not None
self.status = self._load_rr(token)
def _parse_token(self, token: Optional[str]) -> RegStatus:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment