Skip to content

Commit 12688df

Browse files
authored
Merge pull request #65 from Luke2Sky/LucasMilitao2
Fixes problem that NoneTypes are TypeErrors
2 parents e5e804b + b7a2c22 commit 12688df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/multi_component_hydrogen_bond_propensity/multi_component_hydrogen_bond_propensity_report.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def main(structure, work_directory, failure_directory, library, csdrefcode, forc
362362
tdata = get_mc_scores(propensities, crystal.identifier)
363363
json.dump(tdata, file)
364364
mc_dictionary[coformer_name] = get_mc_scores(propensities, crystal.identifier)
365-
except RuntimeError as error_message:
365+
except Exception as error_message:
366366
print("Propensity calculation failure for %s!" % coformer_name)
367367
error_string = f"{coformer_name}: {error_message}"
368368
warnings.warn(error_string)

0 commit comments

Comments
 (0)