removed debug code.
This commit is contained in:
parent
4696b9799c
commit
c2a67aa861
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user