Removed the traceback output in non-verbose mode

This commit is contained in:
Guido van Rossum 1997-07-11 21:14:53 +00:00
parent 5d6de256d5
commit 1d8b7583dc
2 changed files with 2 additions and 109 deletions

View file

@ -23,7 +23,8 @@ for t in tests:
print '=== Syntax error:', t
except:
print '*** Unexpected error ***'
traceback.print_exc(file=sys.stdout)
if verbose:
traceback.print_exc(file=sys.stdout)
else:
try:
result=obj.search(s)