Skip to content

Commit 0345bfc

Browse files
committed
Fixed http code
1 parent 20edb18 commit 0345bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cs3client/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def read_file(self, auth_token: tuple, resource: Resource, lock_id: Optional[str
319319
f'msg="Error downloading file from Reva" code="{fileget.status_code}" '
320320
f'reason="{status_msg}"'
321321
)
322-
if fileget.status_code == http.client.NOTFOUND:
322+
if fileget.status_code == http.client.NOT_FOUND:
323323
raise NotFoundException
324324
else:
325325
raise IOError(fileget.reason)

0 commit comments

Comments
 (0)