# HG changeset patch # User dwinter # Date 1372330984 -7200 # Node ID 9ce5816e89b223cbb43c3345e8524fd2efcbc673 # Parent c3c834cf1a6df169bce4f059405de1ffc21a2095 faeng priority fehler ab bei biblio diff -r c3c834cf1a6d -r 9ce5816e89b2 MPIWGStaff.py --- a/MPIWGStaff.py Thu Jun 27 12:26:00 2013 +0200 +++ b/MPIWGStaff.py Thu Jun 27 13:03:04 2013 +0200 @@ -938,6 +938,12 @@ try: query="update pubmanbiblio set priority=%s where escidocid=%s and lower(key_main)=%s" + try: + x=int(value) + except: + logging.error("priority not a number") + return + self.executeZSQL(query,[value,escidocid,self.getKey().lower()]); except: