Skip to content

Commit dd40116

Browse files
authored
Update database.py
1 parent cade806 commit dd40116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cuckoo/core/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ def demux_sample_and_add_to_db(
16101610
extracted_files, demux_error_msgs = demux_sample(file_path, package, options, platform=platform)
16111611
# check if len is 1 and the same file, if diff register file, and set parent
16121612
if extracted_files and not any(file_path == path for path, _ in extracted_files):
1613-
_ = self.register_sample(File(file_path), source_url=source_url)
1613+
parent_sample = self.register_sample(File(file_path), source_url=source_url)
16141614
if conf.cuckoo.delete_archive:
16151615
path_delete(file_path.decode())
16161616

0 commit comments

Comments
 (0)