Skip to content

Commit

Permalink
Merge pull request #474 from ReactionMechanismGenerator/lowercase_server
Browse files Browse the repository at this point in the history
BugFix: Make ess server name check non case-sensitive
  • Loading branch information
alongd authored Oct 3, 2021
2 parents d8240c8 + f18fcba commit 69b877b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arc/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def check_ess_settings(ess_settings: Optional[dict] = None) -> dict:
raise SettingsError(f'Recognized ESS software are Gaussian, QChem, Molpro, Orca, TeraChem, Psi4, '
f'or OneDMin. Got: {ess}')
for server in server_list:
if not isinstance(server, bool) and server.lower() not in list(servers.keys()):
if not isinstance(server, bool) and server.lower() not in [s.lower() for s in servers.keys()]:
server_names = [name for name in servers.keys()]
raise SettingsError(f'Recognized servers are {server_names}. Got: {server}')
logger.info(f'\nUsing the following ESS settings:\n{pprint.pformat(settings_dict)}\n')
Expand Down

0 comments on commit 69b877b

Please sign in to comment.