diff --git a/test/pebble_cli.py b/test/pebble_cli.py index 5ae722df0..0e7a2078d 100644 --- a/test/pebble_cli.py +++ b/test/pebble_cli.py @@ -246,9 +246,8 @@ def main(): if stderr: print(repr(stderr), end='', file=sys.stderr) sys.exit(0) - # The `[str]` here is to resolve the same issue as above. - except pebble.ExecError[str] as e: - print('ExecError:', e, file=sys.stderr) + except pebble.ExecError as e: # type: ignore + print('ExecError:', e, file=sys.stderr) # type: ignore sys.exit(e.exit_code) elif args.command == 'ls':