summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-02 13:24:40 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-02 13:24:40 +0100
commitcffc4dbc7529d761600bcaf5fbc63bdb308b3194 (patch)
tree150798bece774e811c1637950438f6468f8a8b2e /portato
parente3a7f1a2120f6bd20bdaf53afab5a5de1ae25554 (diff)
downloadportato-cffc4dbc7529d761600bcaf5fbc63bdb308b3194.tar.gz
portato-cffc4dbc7529d761600bcaf5fbc63bdb308b3194.tar.bz2
portato-cffc4dbc7529d761600bcaf5fbc63bdb308b3194.zip
Use warning instead of debug, if the sql database could not be loaded
Diffstat (limited to '')
-rw-r--r--portato/db/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/portato/db/__init__.py b/portato/db/__init__.py
index d77fc0d..e0919dd 100644
--- a/portato/db/__init__.py
+++ b/portato/db/__init__.py
@@ -13,7 +13,7 @@
from __future__ import absolute_import
from ..session import Session, SectionDict
-from ..helper import debug
+from ..helper import debug, warning
_SESSION = None
_TYPE = None
@@ -35,7 +35,7 @@ def Database():
try:
from .sql import SQLDatabase
except ImportError:
- debug("Cannot load SQLDatabase.")
+ warning(_("Cannot load SQLDatabase."))
_TYPE = "dict"
return Database()
else: