mirror of https://github.com/borgbase/vorta
Ensure no missing wifi names. (#525)
This commit is contained in:
parent
85eb725059
commit
3640e17270
|
@ -158,7 +158,7 @@ def get_sorted_wifis(profile):
|
||||||
|
|
||||||
# remove Wifis that were deleted in the system.
|
# remove Wifis that were deleted in the system.
|
||||||
deleted_wifis = WifiSettingModel.select() \
|
deleted_wifis = WifiSettingModel.select() \
|
||||||
.where(WifiSettingModel.ssid.not_in([w['SSIDString'] for w in wifis.values()]))
|
.where(WifiSettingModel.ssid.not_in([w['SSIDString'] for w in wifis.values() if 'SSIDString' in w]))
|
||||||
for wifi in deleted_wifis:
|
for wifi in deleted_wifis:
|
||||||
wifi.delete_instance()
|
wifi.delete_instance()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue