Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A couple of ruff %s fixes were missed #2498

Merged
merged 1 commit into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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