removed debug code.
This commit is contained in:
		| @@ -47,8 +47,7 @@ class FilesApi(BaseApi): | |||||||
|         except MemoryError: |         except MemoryError: | ||||||
|             raise UnexpectedException("Out of memory.") |             raise UnexpectedException("Out of memory.") | ||||||
|         except Exception as e: |         except Exception as e: | ||||||
|             print(e) |             raise UnexpectedException("Unspecified error.") from e | ||||||
|             raise UnexpectedException(e) |  | ||||||
|         return ret.id |         return ret.id | ||||||
|  |  | ||||||
|     def update(self, file: File, path: str | None) -> bool: |     def update(self, file: File, path: str | None) -> bool: | ||||||
| @@ -66,6 +65,8 @@ class FilesApi(BaseApi): | |||||||
|                 raise UnexpectedException(f"Could not open `{path}` file.") |                 raise UnexpectedException(f"Could not open `{path}` file.") | ||||||
|             except MemoryError: |             except MemoryError: | ||||||
|                 raise UnexpectedException("Out of memory.") |                 raise UnexpectedException("Out of memory.") | ||||||
|  |             except Exception as e: | ||||||
|  |                 raise UnexpectedException("Unspecified error.") from e | ||||||
|         else: |         else: | ||||||
|             # update metadata |             # update metadata | ||||||
|             data = {"name": file.name, "description": file.description} |             data = {"name": file.name, "description": file.description} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user