Skip to content

Commit e771ccc

Browse files
committed
fix: explicit check None instead of nullity
1 parent 147fcf7 commit e771ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onefactorauth/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __parse_passcode(html: str, passcode_pattern: re.Pattern) -> Optional[Passco
6161
if not passcodes:
6262
return
6363
timestamp = __parse_passcode_timestamp(html, passcodes[0])
64-
if not timestamp:
64+
if timestamp is None:
6565
return
6666
return Passcode(code=passcodes[0], time=timestamp)
6767

0 commit comments

Comments
 (0)