Skip to content
Snippets Groups Projects
Commit f02532ba authored by Erik Johnston's avatar Erik Johnston
Browse files

Check for None

parent 25b32b63
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ class BaseMediaResource(Resource):
upload_name = None
else:
upload_name_utf8 = params.get("filename*", None)
if upload_name_utf8.lower().startswith("utf-8''"):
if upload_name and upload_name_utf8.lower().startswith("utf-8''"):
upload_name = upload_name_utf8[7:]
if upload_name:
upload_name = urlparse.unquote(upload_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment