Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed May 23, 2024
1 parent de29b0f commit f9c88e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/cs3iface.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ def readfile(endpoint, filepath, userid, lockid):
'X-Access-Token': userid,
'X-Reva-Transfer': protocol.token
}
fileget = requests.get(url=protocol.download_endpoint, headers=headers, verify=ctx['ssl_verify'], timeout=ctx['http_timeout'], stream=True)
fileget = requests.get(url=protocol.download_endpoint, headers=headers,
verify=ctx['ssl_verify'], timeout=ctx['http_timeout'],
stream=True)
except requests.exceptions.RequestException as e:
log.error(f'msg="Exception when downloading file from Reva" reason="{e}"')
yield IOError(e)
Expand Down Expand Up @@ -483,7 +485,8 @@ def writefile(endpoint, filepath, userid, content, size, lockmd, islock=False):
'X-Lock-Id': lockid,
'X-Lock-Holder': appname,
}
putres = requests.put(url=protocol.upload_endpoint, data=content, headers=headers, verify=ctx['ssl_verify'], timeout=ctx['http_timeout'])
putres = requests.put(url=protocol.upload_endpoint, data=content, headers=headers,
verify=ctx['ssl_verify'], timeout=ctx['http_timeout'])
except requests.exceptions.RequestException as e:
log.error(f'msg="Exception when uploading file to Reva" reason="{e}"')
raise IOError(e) from e
Expand Down

0 comments on commit f9c88e9

Please sign in to comment.