From 1022a46dbea931360306f392c1f667d12b2a5fc0 Mon Sep 17 00:00:00 2001 From: Zhiwei Liang Date: Sat, 7 Aug 2021 16:41:32 -0500 Subject: [PATCH] Change Exception to SanicException --- sanic/blueprints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/blueprints.py b/sanic/blueprints.py index 6307d3fa..248c7872 100644 --- a/sanic/blueprints.py +++ b/sanic/blueprints.py @@ -203,7 +203,7 @@ class Blueprint(BaseSanic): if with_registration and self._apps: if new_bp._future_statics: - raise Exception( + raise SanicException( "Static routes registered with the old blueprint instance," " cannot be registered again." )