mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-30 18:27:53 +00:00
sta_connect_bssid_mac: Fix bare except clauses
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -64,17 +64,14 @@ class client_connect(Realm):
|
||||
print(station_name)
|
||||
self.station_profile.cleanup(stat_list)
|
||||
|
||||
try:
|
||||
if self.bssid[station_name] is not None or self.bssid[station_name] != "":
|
||||
self.station_profile.set_command_param("add_sta", "ap", bssid_list[station_name])
|
||||
except:
|
||||
if self.bssid[station_name]:
|
||||
self.station_profile.set_command_param("add_sta", "ap", bssid_list[station_name])
|
||||
else:
|
||||
self.station_profile.set_command_param("add_sta", "ap", "DEFAULT")
|
||||
|
||||
try:
|
||||
if self.mac[station_name] is not None or self.mac[station_name] != "":
|
||||
self.station_profile.add_sta_data["mac"] = mac_list[station_name]
|
||||
print(self.mac[station_name])
|
||||
except:
|
||||
if self.mac[station_name]:
|
||||
self.station_profile.add_sta_data["mac"] = mac_list[station_name]
|
||||
else:
|
||||
self.station_profile.add_sta_data["mac"] = "xx:xx:xx:xx:*:*"
|
||||
|
||||
print(stat_list)
|
||||
|
||||
Reference in New Issue
Block a user