summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_common.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 8eae0950..e51afd7c 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -321,10 +321,12 @@ def start_udd_connection():
db = "udd"
try:
log.debug("Starting connection to the UDD database")
- conn = psycopg2.connect("dbname=" + db +
- " user=" + username +
- " host=" + host +
- " password=" + password)
+ conn = psycopg2.connect(
+ database=db,
+ user=username,
+ host=host,
+ password=password
+ )
except:
log.error('Erorr connecting to the UDD database replica.' +
'The full error is:')