Clarify error message when we got UTF-8 chars in the iourc file

Fix #307
pull/370/head
Julien Duponchelle 9 years ago
parent 2a0f1586c8
commit c43960fbfd

@ -385,7 +385,7 @@ class IOUVM(BaseVM):
except configparser.Error as e:
raise IOUError("Could not parse iourc file {}: {}".format(self.iourc_path, e))
except UnicodeDecodeError as e:
raise IOUError("Invalid iourc file {}: {}".format(self.iourc_path, e))
raise IOUError("Non ascii characters in iourc file {}, please remove them: {}".format(self.iourc_path, e))
if "license" not in config:
raise IOUError("License section not found in iourc file {}".format(self.iourc_path))
hostname = socket.gethostname()

Loading…
Cancel
Save