[Blends-commit] [SCM] website branch, master, updated. 701d55ec923f4852bb6808c6bb93c2745984d6d9

Ole Streicher olebole at debian.org
Thu Mar 10 07:56:17 UTC 2016


The following commit has been merged in the master branch:
commit 701d55ec923f4852bb6808c6bb93c2745984d6d9
Author: Ole Streicher <olebole at debian.org>
Date:   Thu Mar 10 08:54:53 2016 +0100

    correct intendation in connection sequence

diff --git a/webtools/bugs.py b/webtools/bugs.py
index 4a9b337..6d6cc10 100755
--- a/webtools/bugs.py
+++ b/webtools/bugs.py
@@ -40,17 +40,17 @@ except psycopg2.OperationalError as err:
         conn = psycopg2.connect("service=udd")
     except psycopg2.OperationalError as err:
         # logger not known at this state: logger.warning
-        stderr.write("Service=udd seems not to be installed on this host.\tMessage: %s" % (str(err)))
-    try:
-        conn = psycopg2.connect(host="localhost", port=DEFAULTPORT, user="guest",
-                                database="udd")
-    except psycopg2.OperationalError:
-        # Hmmm, I observed a really strange behaviour on one of my
-        # machines where connecting to localhost does not work but
-        # 127.0.0.1 works fine.  No idea why ... but this should do
-        # the trick for the moment
-        conn = psycopg2.connect(host="127.0.0.1", port=DEFAULTPORT, user="guest",
-                                database="udd")
+        stderr.write("Service=udd seems not to be installed on this host.\tMessage: %s\n" % (str(err)))
+        try:
+            conn = psycopg2.connect(host="localhost", port=DEFAULTPORT,
+                                    user="guest", database="udd")
+        except psycopg2.OperationalError:
+            # Hmmm, I observed a really strange behaviour on one of my
+            # machines where connecting to localhost does not work but
+            # 127.0.0.1 works fine.  No idea why ... but this should do
+            # the trick for the moment
+            conn = psycopg2.connect(host="127.0.0.1", port=DEFAULTPORT,
+                                    user="guest", database="udd")
 
 curs = conn.cursor()
 # uddlog = open('logs/uddquery.log', 'w')

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list