* src/gramps_main.py (__init__): Catch "ErrorSchemaInvalid" exception
* src/Errors.py (GConfSchemaError): Add new exception. * src/const.py.in: Remove exception string "ErrorSchemaInvalid" (replaced by new class). * src/GrampsGconfKeys.py (get_bool,get_int,get_string): Raise exception. svn: r4204
This commit is contained in:
@@ -81,3 +81,12 @@ class HandleError(Exception):
|
||||
|
||||
def __str__(self):
|
||||
return self.value
|
||||
|
||||
class GConfSchemaError(Exception):
|
||||
"""Error used to report the absence of expected GConf schema."""
|
||||
def __init__(self,value):
|
||||
Exception.__init__(self)
|
||||
self.value = value
|
||||
|
||||
def __str__(self):
|
||||
return self.value
|
||||
|
||||
Reference in New Issue
Block a user