diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2010-05-02 02:23:42 -0400 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2010-05-02 02:29:23 -0400 |
commit | 81c89ce9be0c77f0b777ceffdce882bd8ff68f9a (patch) | |
tree | e7f4c546ee5ea03adba15176280f34194380e7c7 /helpers.py | |
parent | 2dd328ada40d84b2401e9a0502d72dcdbe8c3e6a (diff) |
Don't bother with a backtrace when we produce certain fatal errors.
We'll introduce a new "Fatal" exception for this purpose, and throw it when
we just want to print a user message and abort immediately.
Diffstat (limited to 'helpers.py')
-rw-r--r-- | helpers.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -15,3 +15,7 @@ def debug1(s): def debug2(s): if verbose >= 2: log(s) + + +class Fatal(Exception): + pass |