forked from pallets/werkzeug
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better traceback for bad imports in custom path
- Loading branch information
Dimitrios Semitsoglou-Tsiapos
committed
May 22, 2015
1 parent
00492cd
commit 2e9c820
Showing
2 changed files
with
21 additions
and
7 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
2e9c820
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dset0x: when are you sending a PR to werkzeug for this?
2e9c820
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see though why: you are removing a behavior of werkzeug. Maybe you can re-raise the previous exception? Additionally why are you passing
globals()
andlocals()
and the original code didn't?2e9c820
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kaplun
pallets#735
Not from what Werkzeug folks can tell, but can't fully confirm yet. https://github.com/mitsuhiko/werkzeug/pull/735/files
Because there is no context without them, and without context we fail too early, if memory serves me right.
As far as
flask-registry
is concerned, we can ship our own method.