* src/gen/db/exceptions.py: wrong exception def, bug #1593
* src/GrampsDbUtils/_WriteXML.py: correctly catch the exception * src/GrampsDbUtils/_GrampsDbWriteXML.py: remove double def of xml export * src/GrampsDbUtils/_GrampsDbWRFactories.py: remove write backend factory * src/ExportAssistant.py: on fail, do not set success = True * src/GrampsDbUtils/__init__.py: don't export unused stuff 2008-01-15 Benny Malengier <benny.malengier@gramps-project.org> svn: r9818
This commit is contained in:
@ -26,21 +26,26 @@
|
||||
class GrampsDbException(Exception):
|
||||
|
||||
def __init__(self, value):
|
||||
Exception.__init__(self)
|
||||
self.value = value
|
||||
|
||||
def __str__(self):
|
||||
return repr(self.value)
|
||||
return self.value
|
||||
|
||||
class GrampsDbWriteFailure(Exception):
|
||||
"""
|
||||
Error used to indicate that a write to a database has failed.
|
||||
"""
|
||||
|
||||
def __int__(self, value):
|
||||
def __init__(self, value, value2=""):
|
||||
Exception.__init__(self)
|
||||
self.value = value
|
||||
self.value2 = value2
|
||||
|
||||
def __str__(self):
|
||||
return repr(self.value)
|
||||
return self.value
|
||||
|
||||
def messages(self):
|
||||
return self.value, self.value2
|
||||
|
||||
class FileVersionError(Exception):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user