diff --git a/APSToolkitPython/setup.py b/APSToolkitPython/setup.py index 7ccd6b1..4f6cf01 100644 --- a/APSToolkitPython/setup.py +++ b/APSToolkitPython/setup.py @@ -6,7 +6,7 @@ setuptools.setup( name="aps-toolkit", - version="0.9.4", + version="0.9.5", author="chuong mep", author_email="chuongpqvn@gmail.com", description="A Toolkit Autodesk Platform Services for Python", diff --git a/APSToolkitPython/src/aps_toolkit/BIM360.py b/APSToolkitPython/src/aps_toolkit/BIM360.py index 88a3f78..440e6bb 100644 --- a/APSToolkitPython/src/aps_toolkit/BIM360.py +++ b/APSToolkitPython/src/aps_toolkit/BIM360.py @@ -444,7 +444,7 @@ def upload_file_item(self, project_id: str, folder_id: str, file_path: str): return file_version except Exception as e: error = "Another object with the same name already exists in this container" - if error in str(e): + if error in str(e) or "Conflict" in str(e): print("File already exists") item_id = self._get_item_id(project_id, folder_id, object_name) file_version = self._create_new_file_version(project_id, item_id, object_name, id)