Skip to content

Commit

Permalink
Fix Pylint E0606 for undefined variable after else
Browse files Browse the repository at this point in the history
Description is trivial: `old_toml_file` is undefined in the
else block.

Signed-off-by: Nicola Sella <[email protected]>
  • Loading branch information
inknos committed May 22, 2024
1 parent b8d2c87 commit 0f2f714
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions podman/domain/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def __init__(self, path: Optional[str] = None):
self.is_default = True
else:
self.path = Path(path)
old_toml_file = None

self.attrs = {}
if self.path.exists():
Expand Down

0 comments on commit 0f2f714

Please sign in to comment.