[CalendarServer-changes] [1233]
CalendarServer/trunk/twistedcaldav/index.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 21 17:42:32 PST 2007
Revision: 1233
http://trac.macosforge.org/projects/calendarserver/changeset/1233
Author: wsanchez at apple.com
Date: 2007-02-21 17:42:31 -0800 (Wed, 21 Feb 2007)
Log Message:
-----------
Catch 'unable to open database file' error and log the filename, then re-raise.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/index.py
Modified: CalendarServer/trunk/twistedcaldav/index.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/index.py 2007-02-22 01:41:54 UTC (rev 1232)
+++ CalendarServer/trunk/twistedcaldav/index.py 2007-02-22 01:42:31 UTC (rev 1233)
@@ -259,7 +259,11 @@
"""
if not hasattr(self, "_db_connection"):
db_filename = os.path.join(self.resource.fp.path, db_basename)
- self._db_connection = sqlite.connect(db_filename)
+ try:
+ self._db_connection = sqlite.connect(db_filename)
+ except:
+ log.err("Unable to open database file: %s" % (db_filename,))
+ raise
#
# Set up the schema
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070221/12460eff/attachment.html
More information about the calendarserver-changes
mailing list