From: tilly-Q Date: Wed, 14 May 2014 16:34:13 +0000 (-0400) Subject: Fixed a small error relating to the default value of media_metadata X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2daf8ec00043a4cc5cd120f875a5382aca6ec7f9;p=mediagoblin.git Fixed a small error relating to the default value of media_metadata --- diff --git a/mediagoblin/submit/lib.py b/mediagoblin/submit/lib.py index df3f7b62..93ae7a1f 100644 --- a/mediagoblin/submit/lib.py +++ b/mediagoblin/submit/lib.py @@ -142,7 +142,7 @@ def submit_media(mg_app, user, submitted_file, filename, entry.license = license or None - entry.media_metadata = metadata or u"" + entry.media_metadata = metadata or {} # Process the user's folksonomy "tags" entry.tags = convert_to_tag_list_of_dicts(tags_string)