mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Fix for css variables being None
This commit is contained in:
parent
e85d62008e
commit
b345b2ab6f
@ -46,8 +46,10 @@ def parse_css_variable(css):
|
|||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
variables = css.css_variables
|
variables = css.css_variables
|
||||||
|
if variables:
|
||||||
variables = json.loads(variables)
|
variables = json.loads(variables)
|
||||||
return CSS_VARIABLES_TEMPLATE % 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):
|
||||||
|
Loading…
Reference in New Issue
Block a user