From 8d56ec1d5966a494e5710cf170f98d85c0b418f4 Mon Sep 17 00:00:00 2001 From: softwareengineerprogrammer <4056124+softwareengineerprogrammer@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:33:26 -0700 Subject: [PATCH] Synchronize currency conversion exception message --- src/geophires_x/Parameter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/geophires_x/Parameter.py b/src/geophires_x/Parameter.py index f986c870..af0edd9d 100644 --- a/src/geophires_x/Parameter.py +++ b/src/geophires_x/Parameter.py @@ -505,10 +505,10 @@ def ConvertUnits(ParamToModify, strUnit: str, model) -> str: except BaseException as ex: print(str(ex)) msg = ( - f'Error: GEOPHIRES failed to convert your currency for {ParamToModify.Name} to something it ' - f'understands. You gave {strUnit} - Are these currency units defined for forex-python? or perhaps the ' - f'currency server is down? Please change your units to {ParamToModify.PreferredUnits.value} to ' - f'continue. Cannot continue unless you do. Exiting.' + f'Error: GEOPHIRES failed to convert your currency for {ParamToModify.Name} to something it understands. ' + f'You gave {strUnit} - conversion may be affected by https://github.com/NREL/GEOPHIRES-X/issues/236. ' + f'Please change your units to {ParamToModify.PreferredUnits.value} ' + f'to continue. Cannot continue unless you do. Exiting.' ) print(msg) model.logger.critical(str(ex))