summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-01 15:46:43 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-01 15:46:43 -0500
commit5febb076543435ee05d3e3f73fe7c148c4b10ec0 (patch)
tree124797d8512cf73a131e58477fa72563d4e2ab42
parente188fa3eb451c6951ebd6017bd2eb959306f0b60 (diff)
use TextScriptException again
-rw-r--r--pokemontools/crystal.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py
index dca30d5..eb1d8cb 100644
--- a/pokemontools/crystal.py
+++ b/pokemontools/crystal.py
@@ -2352,7 +2352,8 @@ class MainText(TextCommand):
# $4f, $51 and $55 can end a line
if byte in [0x4f, 0x51, 0x55]:
- assert not new_line, "can't have $4f, $51, $55 as the first character on a newline"
+ if new_line:
+ raise exceptions.TextScriptException("can't have $4f, $51, $55 as the first character on a newline")
if in_quotes:
output += "\", $%.2x\n" % (byte)