Skip to content

Commit

Permalink
Synchronize currency conversion exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareengineerprogrammer committed Oct 15, 2024
1 parent 0338348 commit 8d56ec1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/geophires_x/Parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8d56ec1

Please sign in to comment.