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 return None
else: else:
variables = css.css_variables variables = css.css_variables
variables = json.loads(variables) if variables:
return CSS_VARIABLES_TEMPLATE % variables variables = json.loads(variables)
return CSS_VARIABLES_TEMPLATE % variables
return None
@embed.route("/<string:guild_id>") @embed.route("/<string:guild_id>")
def guild_embed(guild_id): def guild_embed(guild_id):