diff --git a/gazu/sync.py b/gazu/sync.py index ad2523dc..817f66bd 100644 --- a/gazu/sync.py +++ b/gazu/sync.py @@ -547,7 +547,7 @@ def push_task_comment( for attachment_id in comment["attachment_files"]: if type(attachment_id) == dict: attachment_id = attachment_id["id"] - attachment_file = gazu.files.get_attachment_file( + attachment_file = files_module.get_attachment_file( attachment_id, client=client_source ) file_path = "/tmp/zou/sync/" + attachment_file["name"] diff --git a/setup.cfg b/setup.cfg index 7c1669ac..c9fa4d53 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,7 +30,7 @@ classifiers = zip_safe = False packages = find: install_requires = - python-socketio[client]==5.11.0; python_version != '2.7' + python-socketio[client]>=5.11.0,<6; python_version != '2.7' requests>=2.25.1 Deprecated==1.2.14 @@ -48,5 +48,5 @@ test = requests_mock lint = - black==23.12.1; python_version >= '3.8' - pre-commit==3.6.0; python_version >= '3.9' + black==24.1.1; python_version >= '3.8' + pre-commit==3.6.1; python_version >= '3.9'