Skip to content

Commit

Permalink
dfec557 遗漏的修改
Browse files Browse the repository at this point in the history
  • Loading branch information
nukemiko committed Nov 22, 2022
1 parent 8619e11 commit bd16178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libtakiyasha/qmc/qmcdataciphers.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __init__(self, master_key: BytesLike, /):
self._master_key = tobytes(master_key)

key_len = len(self._master_key)
if len(self._master_key) == 0:
if key_len == 0:
raise ValueError("first argument 'master_key' cannot be an empty bytestring")
if b'\x00' in self._master_key:
raise ValueError("b'\\x00' cannot appear in the first argument 'master_key'")
Expand Down

0 comments on commit bd16178

Please sign in to comment.