mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-26 03:26:57 +03:00
Merge pull request #1266 from chennin/patch-2
Fix shutting_down example in plugins.md
This commit is contained in:
1 file changed
+4
-4
+4
-4
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user