From f18fcba7a144074c4f029f1e00fb393bcf847498 Mon Sep 17 00:00:00 2001 From: Alon Grinberg Dana Date: Sun, 3 Oct 2021 15:37:54 +0300 Subject: [PATCH] BugFix: Make ess server name check non case-sensitive --- arc/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc/common.py b/arc/common.py index 36682404f5..2308006502 100644 --- a/arc/common.py +++ b/arc/common.py @@ -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')