Reviewers: ,


Please review this at http://codereview.tryton.org/680002/

Affected files:
  M trytond/backend/sqlite/database.py


Index: trytond/backend/sqlite/database.py
===================================================================
--- a/trytond/backend/sqlite/database.py
+++ b/trytond/backend/sqlite/database.py
@@ -116,7 +116,7 @@
             path = os.path.join(CONFIG['data_path'],
                     self.database_name + '.sqlite')
             if not os.path.isfile(path):
-                raise Exception('Database doesn\'t exist!')
+                raise IOError('Database "%s" doesn\'t exist!' % path)
         if self._conn is not None:
             return self
self._conn = sqlite.connect(path, detect_types=sqlite.PARSE_DECLTYPES)


--
--
[email protected] mailing list

--- You received this message because you are subscribed to the Google Groups "tryton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to