fix: py3.11 limited support

This commit is contained in:
2025-03-05 20:07:46 +08:00
parent c3f9db22c1
commit dc5d2b95e0
2 changed files with 49 additions and 13 deletions

View File

@@ -66,14 +66,17 @@ def decrypt_process(runtimes: Dict[str, RuntimeInfo], sequences: List[Tuple[str,
for line in stderr:
if line.startswith((
'Warning: Stack history is empty',
'Warning: Stack history is not empty!',
'Warning: block stack is not empty!',
'Warning: Stack history is not empty',
'Warning: block stack is not empty',
)):
if args.show_warn_stack or args.show_all:
logger.warning(f'PYCDC: {line} ({path})')
elif line.startswith('Unsupported opcode:'):
if args.show_err_opcode or args.show_all:
logger.error(f'PYCDC: {line} ({path})')
elif line.startswith('Something TERRIBLE happened'):
if args.show_all:
logger.error(f'PYCDC: {line} ({path})')
else:
logger.error(f'PYCDC: {line} ({path})')
if sp.returncode != 0: