Skip to content

Commit

Permalink
Merge pull request #438 from vojtechtrefny/main_pylint-fixes
Browse files Browse the repository at this point in the history
Fix pylint 'possibly-used-before-assignment' warnings
  • Loading branch information
vojtechtrefny authored May 22, 2024
2 parents 1b7473d + 24c4dda commit c0ca51f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blivetgui/blivet_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,8 @@ def _create_snapshot(self, user_input):
parents=[origin_lv.pool],
origin=origin_lv,
seg_type="thin")
else:
raise ValueError("Creating snapshots is not supported for %s" % user_input.device_type)

actions.append(blivet.deviceaction.ActionCreateDevice(new_snap))

Expand Down
2 changes: 2 additions & 0 deletions blivetgui/list_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def update_devices_view(self):
model, treeiter = selection.get_selected()
if treeiter and model:
selected_device = model[treeiter][0].name
else:
selected_device = None

# reload devices
# adding new devices into TreeStore causing "changed" signal being
Expand Down

0 comments on commit c0ca51f

Please sign in to comment.