summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-08-15 00:46:21 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-08-15 00:46:21 +0200
commit4bd0501d3f533ee4d2ef8ee425b8dd60131a5980 (patch)
treeeb600292b1f5c1aa0756345bef6c4d7f0d36e5c1
parent0b50ae98f1e54a9e24dfc6ebc38c2a891bfa931e (diff)
downloadportato-4bd0501d3f533ee4d2ef8ee425b8dd60131a5980.tar.gz
portato-4bd0501d3f533ee4d2ef8ee425b8dd60131a5980.tar.bz2
portato-4bd0501d3f533ee4d2ef8ee425b8dd60131a5980.zip
Honor missing eix module
Diffstat (limited to '')
-rw-r--r--portato/db/__init__.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/portato/db/__init__.py b/portato/db/__init__.py
index 9869e3f..a58ba61 100644
--- a/portato/db/__init__.py
+++ b/portato/db/__init__.py
@@ -50,8 +50,13 @@ def Database(type):
elif type == "eixsql":
debug("Using EixSQLDatabase")
- from .eix_sql import EixSQLDatabase
- return EixSQLDatabase(SectionDict(_SESSION, type))
+ try:
+ from .eix_sql import EixSQLDatabase
+ except ImportError:
+ warning(_("Cannot load EixSQLDatabase."))
+ return Database("sql")
+ else:
+ return EixSQLDatabase(SectionDict(_SESSION, type))
else:
error(_("Unknown database type: %s"), type)
pan>Rename util.go to log.go. Add verbose modeRené 'Necoro' Neumann4-24/+54 2020-04-19Clean go.modRené 'Necoro' Neumann2-3/+0 2020-04-19Do not print the parsedCfg anymoreRené 'Necoro' Neumann1-1/+1 2020-04-19Increase go-version to 1.14René 'Necoro' Neumann1-2/+2 2020-04-19CI: go vetRené 'Necoro' Neumann1-0/+3 2020-04-19Fetching and parsing the feedsRené 'Necoro' Neumann5-4/+113 2020-04-19Ignore all config*.ymlRené 'Necoro' Neumann1-1/+1