mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 10:48:02 +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) |             print(station_name) | ||||||
|             self.station_profile.cleanup(stat_list) |             self.station_profile.cleanup(stat_list) | ||||||
|  |  | ||||||
|             try: |             if self.bssid[station_name]: | ||||||
|                 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]) |                 self.station_profile.set_command_param("add_sta", "ap", bssid_list[station_name]) | ||||||
|             except: |             else: | ||||||
|                 self.station_profile.set_command_param("add_sta", "ap", "DEFAULT") |                 self.station_profile.set_command_param("add_sta", "ap", "DEFAULT") | ||||||
|  |  | ||||||
|             try: |             if self.mac[station_name]: | ||||||
|                 if self.mac[station_name] is not None or self.mac[station_name] != "": |  | ||||||
|                 self.station_profile.add_sta_data["mac"] = mac_list[station_name] |                 self.station_profile.add_sta_data["mac"] = mac_list[station_name] | ||||||
|                     print(self.mac[station_name]) |             else: | ||||||
|             except: |  | ||||||
|                 self.station_profile.add_sta_data["mac"] = "xx:xx:xx:xx:*:*" |                 self.station_profile.add_sta_data["mac"] = "xx:xx:xx:xx:*:*" | ||||||
|  |  | ||||||
|             print(stat_list) |             print(stat_list) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Matthew Stidham
					Matthew Stidham