Fix NameError with resolving codes with Template

This commit is contained in:
Nadir Chowdhury
2020-07-31 21:07:20 -04:00
committed by GitHub
parent b77af19939
commit 6d88316767
+1 -1
View File
@@ -469,7 +469,7 @@ def resolve_template(code):
"""
from .template import Template # circular import
if isinstance(code, Template):
return template.code
return code.code
else:
rx = r'(?:https?\:\/\/)?discord(?:\.new|(?:app)?\.com\/template)\/(.+)'
m = re.match(rx, code)