Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorder logic to get rid of noise error and reword assoc. error
It's possible for the program logic to be wrong and not the user, so the error message now implies that you should double-check your InChI. Moving the error condition out of a try-block also lets us get rid of some unnecessary noise -- we don't need two tracebacks for the same error (one for UnboundLocalException, another for ValueError), since the error we care about is the second one anyway.
- Loading branch information