misc cleanups
[uccvend-vendserver.git] / sql-edition / servers / VendServer.py
index 2133f37..85f42f4 100755 (executable)
@@ -3,6 +3,7 @@
 
 USE_DB = 0
 
+import ConfigParser
 import sys, os, string, re, pwd
 if USE_DB: import pg
 from time import time, sleep
@@ -424,7 +425,6 @@ class VendConfigFile:
 
 
 if __name__ == '__main__':
-       import ConfigParser
 
        options = parse_args()
        config_opts = VendConfigFile(options.config_file, config_options)
@@ -436,8 +436,6 @@ if __name__ == '__main__':
                        (exc_type, exc_value, exc_traceback) = sys.exc_info()
                        print
                        print "Connection error: "+str(exc_type)+" "+str(e)
-                       print_tb(exc_traceback)
-                       del exc_traceback
                        print "Trying again in 5 seconds."
                        sleep(5)
                        continue

UCC git Repository :: git.ucc.asn.au