[Collab-qa-commits] r1355 - udd/udd

lucas at alioth.debian.org lucas at alioth.debian.org
Sun Dec 21 22:08:34 UTC 2008


Author: lucas
Date: 2008-12-21 22:08:34 +0000 (Sun, 21 Dec 2008)
New Revision: 1355

Modified:
   udd/udd/aux.py
Log:
fix optional dbport parameter

Modified: udd/udd/aux.py
===================================================================
--- udd/udd/aux.py	2008-12-19 13:31:39 UTC (rev 1354)
+++ udd/udd/aux.py	2008-12-21 22:08:34 UTC (rev 1355)
@@ -30,7 +30,7 @@
 
 def open_connection(config):
   """Open the connection to the database and return it"""
-  if config['general']['dbport']:
+  if 'dbport' in config['general']:
     p = " port=" + str(config['general']['dbport'])
   else:
     p = ""




More information about the Collab-qa-commits mailing list