Skip to content

Commit

Permalink
fixed handling of wrong input file
Browse files Browse the repository at this point in the history
  • Loading branch information
brisvag committed Jun 12, 2019
1 parent f3ff4e9 commit bad436a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycg_bonds.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ def cg_bonds(file=None, selection='all'):
aa_template = maybe_file
else:
raise TypeError(f'"{maybe_file.suffix}" is not a supported format.')
else:
raise FileNotFoundError(f'{maybe_file} does not exist.')

# Order might be important
cmd.set("retain_order", 1) # TODO: is it really though?
Expand Down

0 comments on commit bad436a

Please sign in to comment.