USE_DB = 0
+import ConfigParser
import sys, os, string, re, pwd
if USE_DB: import pg
from time import time, sleep
if __name__ == '__main__':
- import ConfigParser
options = parse_args()
config_opts = VendConfigFile(options.config_file, config_options)
(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