Change Exception to SanicException
This commit is contained in:
parent
9c8f2c619a
commit
1022a46dbe
@ -203,7 +203,7 @@ class Blueprint(BaseSanic):
|
|||||||
|
|
||||||
if with_registration and self._apps:
|
if with_registration and self._apps:
|
||||||
if new_bp._future_statics:
|
if new_bp._future_statics:
|
||||||
raise Exception(
|
raise SanicException(
|
||||||
"Static routes registered with the old blueprint instance,"
|
"Static routes registered with the old blueprint instance,"
|
||||||
" cannot be registered again."
|
" cannot be registered again."
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user