summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crystal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/crystal.py b/crystal.py
index 8c55e35..48f0e13 100644
--- a/crystal.py
+++ b/crystal.py
@@ -1963,6 +1963,10 @@ class MainText(TextCommand):
new_line = False
was_comma = False
+ # this shouldn't happen because of the rom_until calls in the parse method
+ if not end:
+ raise Exception, "ran out of bytes without the script ending?"
+
# last character may or may not be allowed to be a newline?
# Script.to_asm() has command.to_asm()+"\n"
if output[-1] == "\n":