mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 00:30:33 +03:00
Fix shutting_down example in plugins.md
This commit is contained in:
parent
5a7ff94eac
commit
5e5169da51
@ -326,9 +326,9 @@ should treat it as a variable.
|
|||||||
**Do NOT use**:
|
**Do NOT use**:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from config import shutting_down
|
from config import config
|
||||||
|
|
||||||
if shutting_down():
|
if config.shutting_down():
|
||||||
# During shutdown
|
# During shutdown
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -338,9 +338,9 @@ this context you're testing if the function exists, and that is always True.
|
|||||||
So instead use:
|
So instead use:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from config import shutting_down
|
from config import config
|
||||||
|
|
||||||
if shutting_down:
|
if config.shutting_down:
|
||||||
# During shutdown
|
# During shutdown
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user