From 313cd4adc4ac0faef3a6d9c349c8b29ec2b4c281 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 11 Jun 2003 03:51:09 +0000 Subject: [PATCH] * src/select_person.glade: select person interface * src/Plugins.py: Catch the LANG environment variable not being set when determining which relationship calculator to use svn: r1701 --- src/Plugins.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Plugins.py b/src/Plugins.py index b1e4fad5f..f7b75bea7 100644 --- a/src/Plugins.py +++ b/src/Plugins.py @@ -507,9 +507,11 @@ def register_relcalc(func, languages): """Register a relationshp calculator""" import sys global _relcalc_task - - if os.environ["LANG"] in languages: - _relcalc_task = func + + try: + if os.environ["LANG"] in languages: + _relcalc_task = func + pass def relationship_function(): global _relcalc_task