-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also display correct info when `using hug`.
- Loading branch information
1 parent
c3d6ff9
commit fed3ef1
Showing
3 changed files
with
23 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
try: | ||
print("apphelpers: using FastAPI") | ||
from apphelpers.errors.fastapi import * # noqa: F401, F403 | ||
|
||
print("apphelpers: using FastAPI") | ||
except ImportError: | ||
print("apphelpers: using hug") | ||
from apphelpers.errors.hug import * # noqa: F401, F403 | ||
|
||
print("apphelpers: using hug") |
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