Change Exception to SanicException

This commit is contained in:
Zhiwei Liang 2021-08-07 16:41:32 -05:00
parent 9c8f2c619a
commit 1022a46dbe

View File

@ -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."
) )