mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-30 18:27:53 +00:00 
			
		
		
		
	corrects locations found in comments
This commit is contained in:
		| @@ -40,7 +40,7 @@ class LFRequest: | ||||
|                                              headers=self.default_headers) | ||||
|         else: | ||||
|             request = urllib.request.Request(url=self.requested_url, headers=self.default_headers) | ||||
|             print("No data for this jsonPost?") | ||||
|             print("No data for this formPost?") | ||||
|  | ||||
|         request.headers['Content-type'] = 'application/x-www-form-urlencoded' | ||||
|         resp = '' | ||||
| @@ -125,7 +125,7 @@ class LFRequest: | ||||
|             return myresponses[0] | ||||
|         except urllib.error.HTTPError as error: | ||||
|             if (show_error): | ||||
|                 print("----- jsonPost() HTTPError: --------------------------------------------") | ||||
|                 print("----- get() HTTPError: --------------------------------------------") | ||||
|                 print("<%s> HTTP %s: %s"%(myrequest.get_full_url(), error.code, error.reason, )) | ||||
|  | ||||
|                 print("Error: ", sys.exc_info()[0]) | ||||
| @@ -147,7 +147,7 @@ class LFRequest: | ||||
|                 print("------------------------------------------------------------------------") | ||||
|         except urllib.error.URLError as uerror: | ||||
|             if (show_error): | ||||
|                 print("----- jsonPost() URLError: ---------------------------------------------") | ||||
|                 print("----- get() URLError: ---------------------------------------------") | ||||
|                 print("Reason: %s; URL: %s"%(uerror.reason, myrequest.get_full_url())) | ||||
|                 print("------------------------------------------------------------------------") | ||||
|         return None | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jed Reynolds
					Jed Reynolds