From a5853c21ba811450b6d289393a9505948474924f Mon Sep 17 00:00:00 2001 From: Brady Johnston Date: Fri, 24 May 2024 11:47:07 +0200 Subject: [PATCH] handle attribute error --- molecularnodes/io/parse/molecule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molecularnodes/io/parse/molecule.py b/molecularnodes/io/parse/molecule.py index 1f825720..40f3c1e5 100644 --- a/molecularnodes/io/parse/molecule.py +++ b/molecularnodes/io/parse/molecule.py @@ -679,7 +679,7 @@ def att_sec_struct(): ) if verbose: print(f'Added {att["name"]} after {time.process_time() - start} s') - except (TypeError, KeyError) as e: + except (AttributeError, TypeError, KeyError) as e: if verbose: warnings.warn( f"Unable to add attribute: {att['name']}. Error: {str(e)}"