Skip to content

Commit a4241fc

Browse files
committed
cs3iface: also catch generic Exceptions for now. To be removed
1 parent 2e322ad commit a4241fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/cs3iface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def stat(endpoint, fileref, userid):
8383
try:
8484
resource = Resource.from_file_ref_and_endpoint(fileref, endpoint)
8585
statInfo = client.file.stat(Auth.check_token(userid), resource)
86-
except cs3client.exceptions.UnknownException as e:
86+
except (cs3client.exceptions.UnknownException, Exception) as e:
8787
log.error(
8888
'msg="Invoked stat" endpoint="%s" fileref="%s" exception="%s"' %
8989
(endpoint, fileref, str(e).replace('\n', ' '))

0 commit comments

Comments
 (0)