summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpython/qadmin.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/qadmin.py b/python/qadmin.py
index 6be44d0c..ed9d7fc2 100755
--- a/python/qadmin.py
+++ b/python/qadmin.py
@@ -96,7 +96,7 @@ General options:
--version
'''
-import sys, os, readline, getopt, re, psycopg2
+import sys, os, readline, getopt, re, psycopg2, traceback
import pkgloader
pkgloader.require('skytools', '3.0')
@@ -864,6 +864,7 @@ class AdminConsole:
try:
ln = self.line_input()
self.exec_string(ln)
+ raise Exception('exctest')
except KeyboardInterrupt:
print
except EOFError:
@@ -871,6 +872,8 @@ class AdminConsole:
break
except psycopg2.Error, d:
print 'ERROR:', str(d).strip()
+ except Exception:
+ traceback.print_exc()
self.reset_comp_cache()
try: