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