Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratham Chauhan authored and Pratham Chauhan committed Mar 23, 2023
1 parent 88c6262 commit 3c06cd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions capa/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,12 +1042,10 @@ def main(argv=None):
with open(args.load, "rb") as f:
buf = f.read()
Resultdoc = capa.render.result_document.ResultDocument.parse_raw(buf)
print(Resultdoc)


if args.sample:
try:
if args.sample:
_ = get_file_taste(args.sample)
_ = get_file_taste(args.sample)
except IOError as e:
# per our research there's not a programmatic way to render the IOError with non-ASCII filename unless we
# handle the IOError separately and reach into the args
Expand Down Expand Up @@ -1156,7 +1154,7 @@ def main(argv=None):
try:
extractor = get_extractor(
args.sample, format_, args.backend, sig_paths, should_save_workspace, disable_progress=args.quiet
)
)
except UnsupportedFormatError:
log_unsupported_format_error()
return E_INVALID_FILE_TYPE
Expand Down
2 changes: 1 addition & 1 deletion rules
2 changes: 1 addition & 1 deletion tests/data

0 comments on commit 3c06cd8

Please sign in to comment.