diff --git a/src/GrampsCfg.py b/src/GrampsCfg.py index 91efcb7f2..bd9ca0903 100644 --- a/src/GrampsCfg.py +++ b/src/GrampsCfg.py @@ -993,7 +993,10 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): f.destroy() def update_int_entry(self, obj, constant): - config.set(constant, int(obj.get_text())) + try: + config.set(constant, int(obj.get_text())) + except: + print "WARNING: ignoring invalid value for '%s'" % constant def update_entry(self, obj, constant): config.set(constant, unicode(obj.get_text()))