Skip to content

Commit

Permalink
Use IOError, not OSError, for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Sep 22, 2023
1 parent e2d114c commit 1cd19e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cryptosite/bmi_feature_parser.py
Expand Up @@ -15,7 +15,7 @@ def get_cnc(apo):
try:
with open('%s_out/%s_out.pdb' % (apo, apo)) as data:
D = data.readlines()
except OSError:
except IOError:
# If fpocket finds no pockets, it does not create the output directory
return {}, ('1', '1')

Expand Down

0 comments on commit 1cd19e7

Please sign in to comment.