You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure you can catch this. Macro expansion happens at compile time, while try/catch at runtime. By the time Hy gets to the (try (catch ...)) block, the macro expansion already happened, failed, and raised an exception.
Tried:
(import [hy.errors [HyMacroExpansionError]])
HyTypeError
,TypeError
andException
All failed.
Example:
1-5
all fails with throwingHyMacroExpansionError
:Tested on hy 0.10.1 (Python 2.7.6) and hy commit 42983d1 (Python Python 3.4.0)
The text was updated successfully, but these errors were encountered: