File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,8 @@ def __init__(
197197 self ._framework_logger .warning (warning_token_skipped ())
198198
199199 # after setting bot_only here, __init__ cannot replace authorize function
200- self ._authorize .bot_only = installation_store_bot_only
200+ if self ._authorize is not None :
201+ self ._authorize .bot_only = installation_store_bot_only
201202
202203 # --------------------------------------
203204 # Middleware Initialization
Original file line number Diff line number Diff line change @@ -219,7 +219,8 @@ def __init__(
219219 self ._framework_logger .warning (warning_token_skipped ())
220220
221221 # after setting bot_only here, __init__ cannot replace authorize function
222- self ._async_authorize .bot_only = installation_store_bot_only
222+ if self ._async_authorize is not None :
223+ self ._async_authorize .bot_only = installation_store_bot_only
223224
224225 # --------------------------------------
225226 # Middleware Initialization
You can’t perform that action at this time.
0 commit comments