Hfzune commited on
Commit
e16e5ad
·
verified ·
1 Parent(s): e0a2e1a

Update core.py

Browse files
Files changed (1) hide show
  1. core.py +1 -1
core.py CHANGED
@@ -823,7 +823,7 @@ def get_maintenance() -> tuple:
823
 
824
 
825
  def set_maintenance(on: bool, reason: str = ""):
826
- global MAINTENANCE_MODE, MAINTENANCE_REASON
827
  with _state_lock:
828
  config.MAINTENANCE_MODE = on
829
  config.MAINTENANCE_REASON = reason if on else ""
 
823
 
824
 
825
  def set_maintenance(on: bool, reason: str = ""):
826
+ # global MAINTENANCE_MODE, MAINTENANCE_REASON
827
  with _state_lock:
828
  config.MAINTENANCE_MODE = on
829
  config.MAINTENANCE_REASON = reason if on else ""