Skip to content

Commit

Permalink
Merge pull request kevoreilly#2498 from rkoumis/ruff-follow-up
Browse files Browse the repository at this point in the history
A couple of ruff %s fixes were missed
  • Loading branch information
kevoreilly authored Feb 20, 2025
2 parents b93ca6c + 2e5f9d6 commit 48b3638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cuckoo/common/cleaners_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def delete_bulk_tasks_n_folders(tids: list, delete_mongo: bool):
for id in ids_tmp:
if db.delete_task(id):
try:
path = os.path.join(CUCKOO_ROOT, "storage", "analyses", "%s", str(id))
path = os.path.join(CUCKOO_ROOT, "storage", "analyses", str(id))
if path_is_dir(path):
delete_folder(path)
except Exception as e:
Expand All @@ -194,7 +194,7 @@ def delete_bulk_tasks_n_folders(tids: list, delete_mongo: bool):
# If we don't remove from mongo we should keep in db to be able to show task in webgui
for id in ids_tmp:
try:
path = os.path.join(CUCKOO_ROOT, "storage", "analyses", "%s", str(id))
path = os.path.join(CUCKOO_ROOT, "storage", "analyses", str(id))
if path_is_dir(path):
delete_folder(path)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion modules/processing/CAPE.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def run(self):
"""
self._set_dict_keys()
meta = {}
# Required to control files extracted by selfextract.conf as we store them in dropped
# Required to control files extracted by integrations.conf as we store them in dropped
duplicated: DuplicatesType = collections.defaultdict(set)
if path_exists(self.files_metadata):
for line in open(self.files_metadata, "rb"):
Expand Down

0 comments on commit 48b3638

Please sign in to comment.