diff --git a/lib/cuckoo/common/demux.py b/lib/cuckoo/common/demux.py index 81a9d320366..19fb110c129 100644 --- a/lib/cuckoo/common/demux.py +++ b/lib/cuckoo/common/demux.py @@ -340,7 +340,7 @@ def demux_sample(filename: bytes, package: str, options: str, use_sflock: bool = # original file if not retlist: if error_msg: - error_list.append({os.path.basename(filename).decode(), error_msg}) + error_list.append({os.path.basename(filename).decode(): error_msg}) new_retlist.append((filename, platform)) else: for filename, platform, magic_type, file_size in retlist: