[dm] define an exception we use. Fixes #5457
This commit is contained in:
parent
e7dd3e7d13
commit
484e3970d3
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue