Commit 63579fd2 by Bálint Máhonfai

Fix flake8 warning

parent 4b88e9f4
......@@ -285,12 +285,14 @@ class Disk(object):
with open(exported_path, 'rb') as exported_disk:
try:
m = MultipartEncoder(
{'data': (exported_name + '.' + format_dict[format], exported_disk)}
{'data': (exported_name + '.' + format_dict[format],
exported_disk)}
)
response = requests.post(upload_link,
data=m,
headers={'Content-Type': m.content_type},
params={'no_redirect': ''})
response = requests.post(
upload_link,
data=m,
headers={'Content-Type': m.content_type},
params={'no_redirect': ''})
if response.status_code != 200:
raise Exception("Invalid response status code: %s" %
response.status_code)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment