From ecedde19931bd7d1eb71c59498dab98944639b85 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 31 Aug 2013 09:46:11 -0500 Subject: replace an assert in macro_translator Use a MacroException instead of an AssertionError. --- preprocessor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'preprocessor.py') diff --git a/preprocessor.py b/preprocessor.py index 69121747d..a6a9efd29 100644 --- a/preprocessor.py +++ b/preprocessor.py @@ -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 -- cgit v1.2.3