Skip to content

Commit

Permalink
chore: lazy export exceptions (#3490)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm committed Feb 7, 2023
1 parent 1618cee commit 8ad5003
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bentoml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
from . import container # Container API
from . import client # Client API
from . import batch # Batch API
from . import exceptions # BentoML exceptions

# isort: on
else:
Expand Down Expand Up @@ -130,6 +131,7 @@
metrics = _LazyLoader("bentoml.metrics", globals(), "bentoml.metrics")
container = _LazyLoader("bentoml.container", globals(), "bentoml.container")
client = _LazyLoader("bentoml.client", globals(), "bentoml.client")
exceptions = _LazyLoader("bentoml.exceptions", globals(), "bentoml.exceptions")

del _LazyLoader

Expand Down Expand Up @@ -160,6 +162,7 @@
"pull",
"serve",
"Bento",
"exceptions",
# Framework specific modules
"catboost",
"detectron",
Expand Down

0 comments on commit 8ad5003

Please sign in to comment.