extras-buildsys/server BuildMaster.py,1.14,1.15

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Wed Jul 13 15:53:10 UTC 2005


Author: dcbw

Update of /cvs/fedora/extras-buildsys/server
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10105/server

Modified Files:
	BuildMaster.py 
Log Message:
Simplify database error message.


Index: BuildMaster.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/server/BuildMaster.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- BuildMaster.py	13 Jul 2005 15:51:42 -0000	1.14
+++ BuildMaster.py	13 Jul 2005 15:53:08 -0000	1.15
@@ -120,11 +120,7 @@
         try:
             self.dbcx = sqlite.connect(CONFIG_LOCATION + "jobdb", encoding="utf-8", timeout=3)
         except sqlite.DatabaseError, e:
-            s = "%s" % e
-            if s == 'unable to open database file':
-                print "Unable to open the jobs database.  Exiting..."
-            else:
-                print "Error: sqlite could not open the database.  Reason: %s" % s
+            print "Error: sqlite could not open the job database.  Reason: %s" % e
             os._exit(1)
         self.curs = self.dbcx.cursor()
         ensure_job_db_tables(self.dbcx)




More information about the fedora-extras-commits mailing list