mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	added exception handeling in sta_connect2 and added extra securities to test_ipv4_ttls
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
This commit is contained in:
		| @@ -279,7 +279,11 @@ class StaConnect2(LFCliBase): | ||||
|             if station_info is None: | ||||
|                 print("unable to query %s" % sta_url) | ||||
|             self.resulting_stations[sta_url] = station_info | ||||
|             ap = station_info["interface"]["ap"] | ||||
|             try: | ||||
|                 ap = station_info["interface"]["ap"] | ||||
|             except Exception as e: | ||||
|                 print(e) | ||||
|                 ap = "NULL" | ||||
|             ip = station_info["interface"]["ip"] | ||||
|             if (ap != "") and (ap != "Not-Associated"): | ||||
|                 print(" %s +AP %s, " % (sta_name, ap), end="") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shivamcandela
					shivamcandela