Fix for css variables being None

This commit is contained in:
Jeremy Zhang 2017-09-08 00:37:37 +00:00
parent e85d62008e
commit b345b2ab6f

View File

@ -46,8 +46,10 @@ def parse_css_variable(css):
return None
else:
variables = css.css_variables
if variables:
variables = json.loads(variables)
return CSS_VARIABLES_TEMPLATE % variables
return None
@embed.route("/<string:guild_id>")
def guild_embed(guild_id):