Skip to content
Snippets Groups Projects
Commit cf895ecd authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-653: fix F821

parent 333bfcff
No related branches found
No related tags found
1 merge request!318Resolve L2SS-770 "Fix pyflakes linting errors"
......@@ -37,6 +37,7 @@ import tarfile
import datetime
import os
import sys
import shutil
# Where to store the measures table sets
IERS_ROOTDIR = "/opt/IERS"
......@@ -135,7 +136,7 @@ def download_measures() -> str:
shutil.rmtree(iers_dir_final)
except Exception as e:
# move out of the way instead then
iers_dir_final.rename(iers_final.with_suffix("delete-me"))
iers_dir_final.rename(iers_dir_final.with_suffix("delete-me"))
# update our name to reflect the correct timestamp
iers_dir_download.rename(iers_dir_final)
......
......@@ -145,7 +145,7 @@ class ObservationControl(Device):
@log_exceptions()
@DebugIt()
def Fault(self):
stop_all_observations()
self.stop_all_observations()
self.set_state(DevState.FAULT)
@only_when_on()
......
......@@ -78,5 +78,5 @@ commands =
[flake8]
filename = *.py,.stestr.conf,.txt
#ignore = E501, W291, W293, W391, E201, E201, E202, E203, E221, E222, E225, E226, E231, E241, E251, E252, E261, E301, E302, E303, E305, E306, E401, E402, F403,
select = W292,B601,B602,T100,M001,F401,B001,B002,B003,B004,B005,B006,B007,B008,B009,B010,B011,B012,B013,B014.B015,B016,B017,B018, F401, F402, F403
select = W292,B601,B602,T100,M001,F401,B001,B002,B003,B004,B005,B006,B007,B008,B009,B010,B011,B012,B013,B014.B015,B016,B017,B018, F401, F402, F403, F404, F405, F811, F812, F821
exclude=.tox,.egg-info,libhdbpp-python
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment