Skip to content

Commit

Permalink
test: update to pylint 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Oct 3, 2023
1 parent 0141194 commit f6ea0e2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ def parseSwitches():
args = Script.getPositionalArgs()
if not args:
error("Missing mandatory 'query' argument")
DIRACExit(1)
elif not args[0].lower() in ("select", "add", "delete"):
error("Missing mandatory argument")
else:
query = args[0].lower()
DIRACExit(1)

query = args[0].lower()

switches = dict(Script.getUnprocessedSwitches())

Expand Down

0 comments on commit f6ea0e2

Please sign in to comment.