From c2a67aa86146c6555f46df91e72c3fb91125fa77 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Thu, 4 Jul 2024 15:21:45 +0900 Subject: [PATCH] removed debug code. --- mdrsclient/api/files.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mdrsclient/api/files.py b/mdrsclient/api/files.py index ecd4dfe..774d594 100644 --- a/mdrsclient/api/files.py +++ b/mdrsclient/api/files.py @@ -47,8 +47,7 @@ class FilesApi(BaseApi): except MemoryError: raise UnexpectedException("Out of memory.") except Exception as e: - print(e) - raise UnexpectedException(e) + raise UnexpectedException("Unspecified error.") from e return ret.id def update(self, file: File, path: str | None) -> bool: @@ -66,6 +65,8 @@ class FilesApi(BaseApi): raise UnexpectedException(f"Could not open `{path}` file.") except MemoryError: raise UnexpectedException("Out of memory.") + except Exception as e: + raise UnexpectedException("Unspecified error.") from e else: # update metadata data = {"name": file.name, "description": file.description}