Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankyrumple committed Aug 12, 2020
1 parent 71066b5 commit 21e7c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web2py/applications/smc/controllers/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -2509,7 +2509,7 @@ def pull_ql_audio(headers, quizlet_url, save_path, url):

@auth.requires(auth.has_membership('Faculty') or auth.has_membership('Administrators'))
def pull_ql_image(headers, quizlet_url, save_path, image_data):
if len(image_data) < 1 or image_data == "False" or image_data == "None" image_data is None:
if image_data is None or len(image_data) < 1 or image_data == "False" or image_data == "None":
# No image data
return ""

Expand Down

0 comments on commit 21e7c53

Please sign in to comment.