Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise exceptions when no handlers are provided.
Also small DRYing in try handling. Previously, writing a bare (try (foo)) would invoke Pokemon exception catching (gotta catch 'em all) instead of the correct behavior, which is to raise the exception if no handler is provided. Note that this is a cute feature of Hy, as a `try` with no `except` is a syntax error. We avoid the syntax error here because we don't use Python's compiler, which is the only thing that can throw Syntax Errors. :D Fixes #555.
- Loading branch information
1 parent
4f8ab5a
commit 3f9ae91
Showing
3 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters