diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-02 13:24:40 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-02 13:24:40 +0100 |
commit | cffc4dbc7529d761600bcaf5fbc63bdb308b3194 (patch) | |
tree | 150798bece774e811c1637950438f6468f8a8b2e /portato/db/__init__.py | |
parent | e3a7f1a2120f6bd20bdaf53afab5a5de1ae25554 (diff) | |
download | portato-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 'portato/db/__init__.py')
-rw-r--r-- | portato/db/__init__.py | 4 |
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: |