Skip to content

Commit 15c8c9d

Browse files
author
sgtdede
committed
fix minor issue
1 parent e391cb8 commit 15c8c9d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

spoof_check.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,13 @@ def scheck_it(file_path):
479479
try:
480480
pe = pefile.PE(name=file_path)
481481
except pefile.PEFormatError:
482-
if args.verbose:
483-
print("{}\n\tUnable to parse: PE header".format(file_name))
482+
print("{}\n\tUnable to parse: PE header".format(file_name))
484483
return -1
485484

486485
# Attempt to parse Rich header:
487486
rich_header = pe.parse_rich_header()
488487
if rich_header is None:
489-
if args.verbose:
490-
print("{}\n\tUnable to parse: Rich header".format(file_name))
488+
print("{}\n\tUnable to parse: Rich header".format(file_name))
491489
return -1
492490

493491
# Perform tests

0 commit comments

Comments
 (0)