mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 18:11:23 +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
|
||||
else:
|
||||
variables = css.css_variables
|
||||
variables = json.loads(variables)
|
||||
return CSS_VARIABLES_TEMPLATE % variables
|
||||
if variables:
|
||||
variables = json.loads(variables)
|
||||
return CSS_VARIABLES_TEMPLATE % variables
|
||||
return None
|
||||
|
||||
@embed.route("/<string:guild_id>")
|
||||
def guild_embed(guild_id):
|
||||
|
Loading…
Reference in New Issue
Block a user