]> gitweb.pimeys.fr Git - dtc.git/commitdiff
Affichage de l'erreur aussi + échec de %s master
authorVincent Le Gallic <legallic@crans.org>
Fri, 16 May 2014 16:14:00 +0000 (18:14 +0200)
committerVincent Le Gallic <legallic@crans.org>
Fri, 16 May 2014 16:14:00 +0000 (18:14 +0200)
dtc.py

diff --git a/dtc.py b/dtc.py
index ae8316614fdf10446d49a8f652c068e7499a5431..162e735ca64a56fc4110eaeb063e6cf8d32b0c72 100755 (executable)
--- a/dtc.py
+++ b/dtc.py
@@ -61,8 +61,8 @@ if __name__ == "__main__":
             if q["id"] > last:
                 try:
                     insert(q)
             if q["id"] > last:
                 try:
                     insert(q)
-                except psycopg2.IntegrityError:
-                    print "Bim. l,last_inserted = %s" % (l, last_inserted)
+                except psycopg2.IntegrityError as err:
+                    print "Bim %s\nl,last_inserted = %s, %s" % (err, l, last_inserted)
     else:
         id = int(sys.argv[1])
         try:
     else:
         id = int(sys.argv[1])
         try: