lalalic commited on
Commit
dc27b1e
·
verified ·
1 Parent(s): 256d30e

Update qili.py

Browse files
Files changed (1) hide show
  1. qili.py +2 -2
qili.py CHANGED
@@ -68,7 +68,7 @@ def upload_bytes(bytes, key=None, ext=".wav"):
68
  data = response.json()
69
  return data.get("data", {}).get("file_create", {}).get("url")
70
  else:
71
- raise Exception(f"{conf["storage"]}: {response.status_code} - {response.reason}, {response.text}")
72
  except Exception as e:
73
  traceback.print_exc()
74
  return str(e)
@@ -114,7 +114,7 @@ def upload(files, root_key=None):
114
  data = response.json()
115
  urls.append(data.get("data", {}).get("file_create", {}).get("url"))
116
  else:
117
- raise Exception(f"{conf["storage"]}: {response.status_code} - {response.reason}, {response.text}")
118
 
119
  if shouldReturnString:
120
  urls[0]
 
68
  data = response.json()
69
  return data.get("data", {}).get("file_create", {}).get("url")
70
  else:
71
+ raise Exception(f"{conf['storage']}: {response.status_code} - {response.reason}, {response.text}")
72
  except Exception as e:
73
  traceback.print_exc()
74
  return str(e)
 
114
  data = response.json()
115
  urls.append(data.get("data", {}).get("file_create", {}).get("url"))
116
  else:
117
+ raise Exception(f"{conf['storage']}: {response.status_code} - {response.reason}, {response.text}")
118
 
119
  if shouldReturnString:
120
  urls[0]