From d50a004450f49a00273a02cc799c9c6339b7d17f Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 23 Dec 2009 11:32:14 +0000 Subject: [PATCH] 3466: invalid literal for int() with base 10: in preferences when you try to modify the dates preference svn: r13891 --- src/GrampsCfg.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()))