summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-08-31 09:29:54 -0500
committerBryan Bishop <kanzure@gmail.com>2013-08-31 09:29:54 -0500
commita6237d68257dd3bb963850c205d0ca4a1c46f88a (patch)
tree3ebe8d980218a0af28e838e33e6a00b0c9f211fa
parent97ef590f9ec7a7ae38d98b7cf1fd6947b10b711e (diff)
remove an Exception from preprocessor
It wasn't meant to be left in there anyway.
-rw-r--r--preprocessor.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/preprocessor.py b/preprocessor.py
index c4a93000a..b6bdfbe7d 100644
--- a/preprocessor.py
+++ b/preprocessor.py
@@ -532,10 +532,7 @@ def macro_translator(macro, token, line):
index = 0
while index < len(params):
- try:
- param_type = macro.param_types[index - correction]
- except KeyError as exception:
- raise Exception("line is: " + str(line) + " and macro is: " + str(macro))
+ param_type = macro.param_types[index - correction]
description = param_type["name"]
param_klass = param_type["class"]
byte_type = param_klass.byte_type # db or dw