diff --git a/src/python/strelka/scanners/scan_rar.py b/src/python/strelka/scanners/scan_rar.py index 245e99ee..8accb3b1 100644 --- a/src/python/strelka/scanners/scan_rar.py +++ b/src/python/strelka/scanners/scan_rar.py @@ -131,9 +131,11 @@ def scan(self, data, file, options, expire_at): data = rar_obj.open( name, mode="r", - pwd=password.decode("utf-8") - if password - else None, + pwd=( + password.decode("utf-8") + if password + else None + ), ) if data.readable(): extract_data = data.readall() @@ -144,9 +146,9 @@ def scan(self, data, file, options, expire_at): ), ) if password and log_pws: - self.event[ - "password" - ] = password.decode("utf-8") + self.event["password"] = ( + password.decode("utf-8") + ) break except ( RuntimeError,