Add userfriendly warning if credentials.conf is missing
Warn the user and advise what she should be doing to get going. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
		| @@ -37,6 +37,9 @@ class OLITestLib(): | ||||
|             snippet for authenticating against the test IMAP server(s). | ||||
|         :param cmd: command that will be executed to invoke offlineimap""" | ||||
|         OLITestLib.cred_file = cred_file | ||||
|         if not os.path.isfile(cred_file): | ||||
|             raise UserWarning("Please copy 'credentials.conf.sample' to '%s' " | ||||
|                 "and set your credentials there." % cred_file) | ||||
|         OLITestLib.cmd = cmd | ||||
|  | ||||
|     @classmethod | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sebastian Spaeth
					Sebastian Spaeth