Skip to content
Snippets Groups Projects
Commit 484e3970 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[dm] define an exception we use. Fixes #5457

parent e7dd3e7d
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ class SystemBus:
raise exceptions.DbusNotSupported
if not self.present():
raise exceptions.SystemBusNotPresent
raise exceptions.SystemBusNotPresent
return self.system_bus
def bus(self):
......
......@@ -75,7 +75,20 @@ class SessionBusNotPresent(Exception):
Exception.__init__(self)
def __str__(self):
return _('Session bus is not available.\nTry reading http://trac.gajim.org/wiki/GajimDBus')
return _('Session bus is not available.\nTry reading %(url)s') % \
{'url': 'http://trac.gajim.org/wiki/GajimDBus'}
class SystemBusNotPresent(Exception):
"""
This exception indicates that there is no session daemon
"""
def __init__(self):
Exception.__init__(self)
def __str__(self):
return _('System bus is not available.\nTry reading %(url)s') % \
{'url': 'http://trac.gajim.org/wiki/GajimDBus'}
class NegotiationError(Exception):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment