Commit 63579fd2 by Bálint Máhonfai

Fix flake8 warning

parent 4b88e9f4
...@@ -285,12 +285,14 @@ class Disk(object): ...@@ -285,12 +285,14 @@ class Disk(object):
with open(exported_path, 'rb') as exported_disk: with open(exported_path, 'rb') as exported_disk:
try: try:
m = MultipartEncoder( m = MultipartEncoder(
{'data': (exported_name + '.' + format_dict[format], exported_disk)} {'data': (exported_name + '.' + format_dict[format],
exported_disk)}
) )
response = requests.post(upload_link, response = requests.post(
data=m, upload_link,
headers={'Content-Type': m.content_type}, data=m,
params={'no_redirect': ''}) headers={'Content-Type': m.content_type},
params={'no_redirect': ''})
if response.status_code != 200: if response.status_code != 200:
raise Exception("Invalid response status code: %s" % raise Exception("Invalid response status code: %s" %
response.status_code) 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