Import traceback only on exception
This commit is contained in:
parent
92cf5bd517
commit
1dc576965a
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,4 @@
|
|||
import re
|
||||
import traceback
|
||||
from SocketServer import ThreadingMixIn
|
||||
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
|
||||
from urlparse import urlparse, parse_qs
|
||||
|
@ -247,6 +246,7 @@ class MyHandler(BaseHTTPRequestHandler):
|
|||
|
||||
except:
|
||||
self.logMsg('Error encountered. Traceback:', -1)
|
||||
import traceback
|
||||
self.logMsg(traceback.print_exc(), -1)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue