os.environ['VARIABLE'] c'est pas safe si VARIABLE n'existe pas
This commit is contained in:
parent
f527a12064
commit
29cb2a38f1
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
import itertools
|
import itertools
|
||||||
import os
|
import os
|
||||||
|
|
||||||
debug = (int(os.environ['DBG_TRIGGER']) == 1) or True
|
debug = (int(os.environ.get('DBG_TRIGGER', 0)) == 1) or True
|
||||||
log_level = "info"
|
log_level = "info"
|
||||||
|
|
||||||
# Serveur maître
|
# Serveur maître
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue