From: Cameron Patrick Date: Sun, 1 Aug 2004 05:57:07 +0000 (+0000) Subject: misc cleanups X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=0d5cc81cfba0bacb2b245448c5bd7f840a56a435;p=zanchey%2Fdispense2.git misc cleanups --- diff --git a/sql-edition/servers/VendServer.py b/sql-edition/servers/VendServer.py index 2133f37..85f42f4 100755 --- a/sql-edition/servers/VendServer.py +++ b/sql-edition/servers/VendServer.py @@ -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