X-Git-Url: http://gitweb.pimeys.fr/?p=dtc.git;a=blobdiff_plain;f=dtc.py;h=162e735ca64a56fc4110eaeb063e6cf8d32b0c72;hp=ae8316614fdf10446d49a8f652c068e7499a5431;hb=38b89ae326e2f735696c9701e0efbc1967422144;hpb=e7d59aa6487194be8d9d59bd152afb2e2c754b18 diff --git a/dtc.py b/dtc.py index ae83166..162e735 100755 --- a/dtc.py +++ b/dtc.py @@ -61,8 +61,8 @@ if __name__ == "__main__": 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: