Skip to content

Commit

Permalink
fix upload issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Aug 27, 2024
1 parent edf9d77 commit 4fdb59b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion APSToolkitPython/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="aps-toolkit",
version="0.9.4",
version="0.9.5",
author="chuong mep",
author_email="[email protected]",
description="A Toolkit Autodesk Platform Services for Python",
Expand Down
2 changes: 1 addition & 1 deletion APSToolkitPython/src/aps_toolkit/BIM360.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fdb59b

Please sign in to comment.