A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/dashingsoft/pyarmor/issues/2128 below:

[BUG] Pyarmor will change the error type so that it cannot be caught · Issue #2128 · dashingsoft/pyarmor · GitHub

QQ2025421-151847.mp4

If I change except TypeError to except Exception in the following code, the pyarmor encrypted and packaged exe program can run normally.

Base info:

D:\Download\PyarmorBugDemo>pyarmor -v
Pyarmor 9.1.4 (group), *****, non-profits

License Type    : pyarmor-group
License No.     : pyarmor-vax-*****
License To      : *****
License Product : non-profits

BCC Mode        : Yes
RFT Mode        : Yes
CI/CD Mode      : No

Notes
* Offline obfuscation
447.15


D:\Download\PyarmorBugDemo>python -V
Python 3.13.3

Platform: Windows-11-10.0.26100-SP0

Minimum repetition example

D:\Download\PyarmorBugDemo>type main.py
def add():
    A = '1.2'
    B = 2

    try:
        C = A + B
    except TypeError:
        C = 0

    return C

if __name__ == '__main__':
    result = add()
    print(result)

D:\Download\PyarmorBugDemo>python main.py
0

D:\Download\PyarmorBugDemo>pyarmor gen --enable-bcc --obf-code 2 main.py
INFO     Python 3.13.3
INFO     Pyarmor 9.1.4 (group), ***, non-profits
INFO     Platform windows.x86_64
INFO     search inputs ...
INFO     find script main.py
INFO     find 1 top resources
INFO     start to generate runtime files
INFO     target platforms {'windows.amd64'}
INFO     write dist\pyarmor_runtime_***\pyarmor_runtime.pyd
INFO     generate runtime files OK
INFO     start to obfuscate scripts
INFO     process resource "main"
INFO     obfuscating file main.py
INFO     write dist\main.py
INFO     obfuscate scripts OK

D:\Download\PyarmorBugDemo>python dist\main.py

D:\Download\PyarmorBugDemo>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4