Skip to content

Commit 73fef8e

Browse files
committed
Removed general Exception handling, now covered by cs3client
1 parent 421a1f2 commit 73fef8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requests
88
more_itertools
99
prometheus-flask-exporter
1010
waitress
11-
cs3client>=1.5
11+
cs3client>=1.6
1212
wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability
1313
setuptools>=78.1.1 # not directly required, pinned by Snyk to avoid a vulnerability
1414
werkzeug>=3.0.1 # not directly required, pinned by Snyk to avoid a vulnerability

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, Exception) as e:
86+
except cs3client.exceptions.UnknownException as e:
8787
log.error(
8888
'msg="Invoked stat" endpoint="%s" fileref="%s" exception="%s"' %
8989
(endpoint, fileref, str(e).replace('\n', ' ').replace('"', ''))

0 commit comments

Comments
 (0)