From e80473db33e530860b3904755dc48c5fcea5595f Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Thu, 18 Jun 2020 20:19:10 +0200 Subject: [PATCH] Handle KeyError in read_parameter_file Fixes basic usage of propka after `python setup.py install` followed by `propka3 1ubq.pdb` --- propka/input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/propka/input.py b/propka/input.py index 3971f12..b71b96f 100644 --- a/propka/input.py +++ b/propka/input.py @@ -99,7 +99,7 @@ def read_parameter_file(input_file, parameters): try: ifile = resource_filename(__name__, input_file) input_ = open_file_for_reading(ifile) - except (IOError, FileNotFoundError, ValueError): + except (IOError, FileNotFoundError, ValueError, KeyError): input_ = open_file_for_reading(input_file) for line in input_: parameters.parse_line(line)