[svn r63061] dont print too much info on non-debug

--HG--
branch : trunk
This commit is contained in:
hpk 2009-03-19 10:57:19 +01:00
parent a57836f1eb
commit 6b9bf26536
1 changed files with 6 additions and 2 deletions

View File

@ -68,8 +68,12 @@ def startserver(serversock, loop=False):
except (KeyboardInterrupt, SystemExit): except (KeyboardInterrupt, SystemExit):
raise raise
except: except:
if debug:
import traceback import traceback
traceback.print_exc() traceback.print_exc()
else:
excinfo = sys.exc_info()
print "got exception", excinfo[1]
if not loop: if not loop:
break break
finally: finally: