From 931d534d20b27ebd4dd464064fc9f6aa3aa8b553 Mon Sep 17 00:00:00 2001 From: Ricky Sexton Date: Sun, 12 Nov 2017 12:37:14 -0700 Subject: [PATCH] Comments were added next to the try/except line that reference the issues on github. The except line was changed to include the AttributeType error. --- propkatraj/propkatraj.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/propkatraj/propkatraj.py b/propkatraj/propkatraj.py index 5c4dc71..cd254b8 100644 --- a/propkatraj/propkatraj.py +++ b/propkatraj/propkatraj.py @@ -80,8 +80,10 @@ def get_propka(universe, sel='protein', start=None, stop=None, step=None, skip_f # disk try: mol = pk.single(pstream, optargs=['--quiet']) - except IndexError as err: - if not skip_failure: + except (IndexError, AttributeError) as err: + #https://github.com/Becksteinlab/propkatraj/issues/13 + #https://github.com/Becksteinlab/propkatraj/issues/10 + if not skip_failure: raise else: err_msg = "{0} (failure {2}): failing frame {1}".format(