summaryrefslogtreecommitdiffstats
path: root/helpers.py
diff options
context:
space:
mode:
authorAvery Pennarun <apenwarr@gmail.com>2010-05-02 02:23:42 -0400
committerAvery Pennarun <apenwarr@gmail.com>2010-05-02 02:29:23 -0400
commit81c89ce9be0c77f0b777ceffdce882bd8ff68f9a (patch)
treee7f4c546ee5ea03adba15176280f34194380e7c7 /helpers.py
parent2dd328ada40d84b2401e9a0502d72dcdbe8c3e6a (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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/helpers.py b/helpers.py
index 5ffada5..23f3c84 100644
--- a/helpers.py
+++ b/helpers.py
@@ -15,3 +15,7 @@ def debug1(s):
def debug2(s):
if verbose >= 2:
log(s)
+
+
+class Fatal(Exception):
+ pass