Skip to content

Commit

Permalink
Bug fix for missing key
Browse files Browse the repository at this point in the history
  • Loading branch information
phutelmyer committed Mar 4, 2024
1 parent 749487e commit c3e2640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/blueprints/strelka.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def submit_file(
None.
"""
submitted_hash = ""
total_scanned_with_hits = []

if "file" not in request.files and b"hash" not in request.data:
return (
Expand Down Expand Up @@ -114,7 +115,6 @@ def submit_file(
submitted_description = submission["description"]
submitted_hash = submission["hash"]
submitted_type = "virustotal"
total_scanned_with_hits = []

if os.environ.get("VIRUSTOTAL_API_KEY"):
file = create_vt_zip_and_download(
Expand Down

0 comments on commit c3e2640

Please sign in to comment.