Legrandin / pycryptodome

A self-contained cryptographic library for Python
https://www.pycryptodome.org
Other
2.74k stars 492 forks source link

unnecessary line removed #817

Open gonatienza opened 5 days ago

gonatienza commented 5 days ago

Removed unnecessary orphaned line (self._len_ct += len(plaintext)) that would raise exception if it were not under the exception raised by the KeyError exception handling.

try:
    key = kwargs.pop("key")
except KeyError as e:
    raise TypeError("Missing parameter %s" % e)

    self._len_ct += len(plaintext)