mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
replace an assert in macro_translator
Use a MacroException instead of an AssertionError.
This commit is contained in:
parent
1ce2bccd37
commit
ecedde1993
@ -449,7 +449,8 @@ def macro_translator(macro, token, line):
|
||||
Converts a line with a macro into a rgbasm-compatible line.
|
||||
"""
|
||||
|
||||
assert macro.macro_name == token, "macro/token mismatch"
|
||||
if macro.macro_name != token:
|
||||
raise MacroException("macro/token mismatch")
|
||||
|
||||
original_line = line
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user