Browse Source

Exceptions now indicate cause where applicable

Potentially helping with debugging
and contributing to faster issue resolution.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I4b3db6b6416c0b81ce0397e10c833b342dbc2c0e
changes/43/786643/2
Jiri Podivin 6 months ago
parent
commit
a12c531409
  1. 8
      validations_libs/validation_logs.py

8
validations_libs/validation_logs.py

@ -483,7 +483,13 @@ class ValidationLogs(object):
validation_id)
if validation_id else self.get_logfile_by_uuid(uuid))
else:
raise RuntimeError("uuid should be either a str or a list")
raise RuntimeError(
(
"uuid should be either a str or a list"
"but is {} instead"
).format(type(uuid))
)
res = []
for result in results:
vlog = ValidationLog(logfile=result)

Loading…
Cancel
Save