diff --git a/src/common/logger.py b/src/common/logger.py index 5a3343f18..33d7d84d0 100644 --- a/src/common/logger.py +++ b/src/common/logger.py @@ -22,9 +22,12 @@ import exceptions import gajim try: - from pysqlite2 import dbapi2 as sqlite + import sqlite3 as sqlite # python 2.5 except ImportError: - raise exceptions.PysqliteNotAvailable + try: + from pysqlite2 import dbapi2 as sqlite + except ImportError: + raise exceptions.PysqliteNotAvailable if os.name == 'nt': try: