replace an assert in macro_translator

Use a MacroException instead of an AssertionError.
This commit is contained in:
Bryan Bishop 2013-08-31 09:46:11 -05:00
parent 1ce2bccd37
commit ecedde1993

View File

@ -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