diff --git a/gramps/gen/utils/unknown.py b/gramps/gen/utils/unknown.py index 62f862a1e..65301f990 100644 --- a/gramps/gen/utils/unknown.py +++ b/gramps/gen/utils/unknown.py @@ -148,8 +148,8 @@ def make_unknown(class_arg, explanation, class_func, commit_func, transaction, if not hasattr(make_unknown, 'count'): make_unknown.count = 1 #primitive static variable tval = time.strftime('%x %X', time.localtime()) - if sys.version_info[0] < 3: - tval = tval.decode(glocale.encoding) + if sys.version_info[0] < 3: + tval = tval.decode(glocale.encoding) obj.set_name(_("Unknown, was missing %(time)s (%(count)d)") % { 'time': tval, 'count': make_unknown.count})