`terminal.warning()` excepts a `str`.
Passing `e` means we pass a type `exceptions.RuntimeError`
Changing to `terminal.warning(e.message)` fixes the issue.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1877672
Resolves: rhbz#
1877672
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit
a1f42c8d7b3fe08da82c528038d8db9ccdd5c98a)
try:
self.activate(args)
except RuntimeError as e:
- terminal.warning(e)
+ terminal.warning(e.message)
else:
if args.file:
json_config = args.file