improve paramiko integration, replace .mesage for exceptions with str(exc)
diff --git a/wally/suits/io/agent.py b/wally/suits/io/agent.py
index 25910b4..5fb835e 100644
--- a/wally/suits/io/agent.py
+++ b/wally/suits/io/agent.py
@@ -61,8 +61,8 @@
else:
yield lineno, SETTING, line, None
except Exception as exc:
- pref = "During parsing line number {0}\n".format(lineno)
- raise ValueError(pref + exc.message)
+ pref = "During parsing line number {0}\n{1!s}".format(lineno, exc)
+ raise ValueError(pref)
def fio_config_parse(lexer_iter, format_params):
@@ -378,9 +378,9 @@
raise ValueError(msg.format(raw_out))
except Exception as exc:
- msg = "Can't parse fio output: {0!r}\nError: {1}"
+ msg = "Can't parse fio output: {0!r}\nError: {1!s}"
raw_out = raw_out[:100]
- raise ValueError(msg.format(raw_out, exc.message))
+ raise ValueError(msg.format(raw_out, exc))
return zip(parsed_out, config_slice)