Stop using .message attribute on exceptions
It does not exist on Python 3. Converting the exception to string works identically. The validate methods on many phases are simplified by not calling the parent (which does not do anything). Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
b2190c1c3f
commit
4544b454f8
6 changed files with 3 additions and 19 deletions
|
|
@ -375,7 +375,7 @@ def get_volid(compose, arch, variant=None, escape_spaces=False, disc_type=False)
|
|||
base_product_version=base_product_version)
|
||||
volid = (i % args).format(**args)
|
||||
except KeyError as err:
|
||||
raise RuntimeError('Failed to create volume id: unknown format element: %s' % err.message)
|
||||
raise RuntimeError('Failed to create volume id: unknown format element: %s' % err)
|
||||
volid = _apply_substitutions(compose, volid)
|
||||
if len(volid) <= 32:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue