mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 02:38:03 +00:00 
			
		
		
		
	Fixed error with exception handling
This commit is contained in:
		| @@ -19,8 +19,8 @@ def sendEmail(email, sender, recipient, subject, smtpServer='localhost'): | |||||||
| 		s.send_message(email) | 		s.send_message(email) | ||||||
| 		s.quit() | 		s.quit() | ||||||
| 		return True | 		return True | ||||||
| 	except exception: | 	except Exception as e: | ||||||
| 		print("Send Failed, {}".format(exception)) | 		print("Send Failed, {}".format(e)) | ||||||
| 		sys.exit(2) | 		sys.exit(2) | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Logan Lipke
					Logan Lipke