From 7fb18b14eb7890e01d66bd32a78473e1f0e568ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20E=2E=20G=C3=B3mez?= Date: Fri, 15 Mar 2019 22:58:15 +0000 Subject: [PATCH] Fixes error: ZipArchive object has no attribute 'children' --- mayan/apps/sources/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/sources/tasks.py b/mayan/apps/sources/tasks.py index 89e27930e2..6c5273bae8 100644 --- a/mayan/apps/sources/tasks.py +++ b/mayan/apps/sources/tasks.py @@ -140,7 +140,7 @@ def task_source_handle_upload(self, document_type_id, shared_uploaded_file_id, s if expand: try: compressed_file = Archive.open(file_object=file_object) - for compressed_file_child in compressed_file.children(): + for compressed_file_child in compressed_file.get_members(): # TODO: find way to uniquely identify child files # Use filename in the mean time. if force_text(compressed_file_child) not in skip_list: