Skip to content

Commit

Permalink
Merge pull request #533 from gurch101/fix-social-media-links
Browse files Browse the repository at this point in the history
Xtheme: Fix social media plugin error on save (SHUUP-2747)
  • Loading branch information
tulimaki committed Jun 10, 2016
2 parents 5b19bd2 + 2aba25d commit f9f57cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shoop/xtheme/plugins/social_media_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def clean(self):
links_dict[link_name]["url"] = precleaned_data[link_info]
else:
links_dict[link_name]["ordering"] = precleaned_data[link_info]
cleaned_data["links"] = {k: v for (k, v) in links_dict.items() if v["url"]}
cleaned_data["links"] = {k: v for (k, v) in links_dict.items() if v.get("url", None)}
return cleaned_data


Expand Down

0 comments on commit f9f57cf

Please sign in to comment.