qiniu_file_url

Brightcells %!s(int64=8) %!d(string=hace) años
padre
commit
ac03876ce1
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      utils/qiniucdn.py

+ 2 - 0
utils/qiniucdn.py

@@ -40,4 +40,6 @@ def upload_file_path(path, key=None, mime_type='application/octet-stream', bucke
40 40
 
41 41
 
42 42
 def qiniu_file_url(key, bucket):
43
+    if not key:
44
+        return ''
43 45
     return '{}/{}'.format(QINIU['buckets'][bucket], key)