Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
phutelmyer committed Mar 7, 2024
1 parent 6381b67 commit eac7c8e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/python/strelka/scanners/scan_rar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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,
Expand Down

0 comments on commit eac7c8e

Please sign in to comment.