Revision 281
Added by Aaron Marcuse-Kubitza about 13 years ago
map | ||
---|---|---|
10 | 10 |
sys.path.append(os.path.dirname(__file__)+"/../lib") |
11 | 11 |
|
12 | 12 |
import opts |
13 |
from Parser import SyntaxException
|
|
13 |
import Parser
|
|
14 | 14 |
import sql |
15 | 15 |
import xml_dom |
16 | 16 |
import xml_func |
... | ... | |
158 | 158 |
else: xml_dom.writexml(sys.stdout, doc1) # output is XML |
159 | 159 |
|
160 | 160 |
try: main() |
161 |
except SyntaxException, ex: raise SystemExit(str(ex)) |
|
161 |
except (Parser.SyntaxException, xml_func.SyntaxException), e: |
|
162 |
raise SystemExit(str(e)) |
Also available in: Unified diff
map: Print xml_func.SyntaxExceptions without stack traces by using SystemExit