summaryrefslogtreecommitdiff
path: root/portato/gui/exception_handling.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-09-05 21:08:09 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-09-05 21:08:09 +0200
commit3e3ca0c5438cf25250feaaed3a2aeb87556c7631 (patch)
treecd3e3be9dd7fc945e9eba6885d0daca32517cf9e /portato/gui/exception_handling.py
parentc9ffb9d6d68161f1063adbaecb9c1db925745c2e (diff)
downloadportato-3e3ca0c5438cf25250feaaed3a2aeb87556c7631.tar.gz
portato-3e3ca0c5438cf25250feaaed3a2aeb87556c7631.tar.bz2
portato-3e3ca0c5438cf25250feaaed3a2aeb87556c7631.zip
Print database type at the bottom of exceptions. NOTE: This does not handle multiple databases used at the same time
Diffstat (limited to '')
-rw-r--r--portato/gui/exception_handling.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/portato/gui/exception_handling.py b/portato/gui/exception_handling.py
index 3928680..c973e6b 100644
--- a/portato/gui/exception_handling.py
+++ b/portato/gui/exception_handling.py
@@ -99,12 +99,14 @@ def convert (version):
def get_version_infos():
from ..constants import VERSION
from ..backend import system
+ from ..db import _TYPE as db_type
return "\n".join((
"Portato version: %s" % VERSION,
"System: %s" % " ".join(get_runsystem()),
"Python version: %s" % sys.version,
"Used backend: %s" % system.get_version(),
+ "Used database type: %s" % db_type,
"pygtk: %s (using GTK+: %s)" % (convert(gtk.pygtk_version), convert(gtk.gtk_version)),
"pygobject: %s (using GLib: %s)" % (convert(gobject.pygobject_version), convert(gobject.glib_version))))