Commit 163111fd authored by Štěpán Balážik's avatar Štěpán Balážik Committed by Petr Špaček

rplint: fix for empty question section in rpls

parent bbab44e6
Pipeline #38506 passed with stage
in 2 minutes and 29 seconds
......@@ -281,7 +281,8 @@ def range_shadowing_match_rules(test: RplintTest) -> List[RplintFail]:
e1.match(e2.message)
info = "previous entry on line %d" % get_line_number(test.path, e1.node.char)
fails.append(RplintFail(test, e2, info))
except ValueError:
# IndexError is here especially because of empty question section in rpls
except (ValueError, IndexError):
pass
return fails
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment