From 5e5169da511df4eb8b48d4a52eae7a8b1fe86046 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 25 Aug 2021 15:03:19 -0400 Subject: [PATCH] Fix shutting_down example in plugins.md --- PLUGINS.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PLUGINS.md b/PLUGINS.md index dcb36441..805094be 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -326,9 +326,9 @@ should treat it as a variable. **Do NOT use**: ```python - from config import shutting_down + from config import config - if shutting_down(): + if config.shutting_down(): # During shutdown ``` @@ -338,9 +338,9 @@ this context you're testing if the function exists, and that is always True. So instead use: ```python - from config import shutting_down + from config import config - if shutting_down: + if config.shutting_down: # During shutdown ```