Skip to content

Rewrite loop in downtimeHandler to accomodate for pylint issue...

Pylint unduly triggers when updating existing keys of a dict in a loop (https://github.com/PyCQA/pylint/issues/6179) It's a useful check to have so I don't want to disable it globally, so I just change the way it's written

src/LHCbWebDIRAC/WebApp/handler/DowntimesHandler.py:115:16: E4702: Iterated dict 'responseParams' is being modified inside for loop body, iterate through a copy of it instead. (modified-iterating-dict)

Merge request reports