mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-18 02:52:42 +03:00
Fixed possibly unbound variable
This commit is contained in:
1 parent
8d77cc039b
commit
e89c0e9e21
1 file changed
+1
@@ -71,6 +71,7 @@ def extract_comments(call: ast.Call, lines: list[str], file: pathlib.Path) -> Op
|
||||
above_line = lines[above].strip() if len(lines) >= above else None
|
||||
current_line = lines[current].strip()
|
||||
|
||||
line: Optional[str] = None
|
||||
bad_comment: Optional[str] = None
|
||||
for line in (above_line, current_line):
|
||||
if line is None or '#' not in line:
|
||||
|
||||
Reference in new issue
Block a user