Skip to content

Commit 8061dfa

Browse files
committed
Ignore bootstrap excepton for register and download
1 parent f515866 commit 8061dfa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/pyarmor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,11 @@ def main(argv):
15841584
logging.info('Set boot platform: %s', args.boot)
15851585
os.environ['PYARMOR_PLATFORM'] = args.boot
15861586

1587-
pytransform_bootstrap(capsule=DEFAULT_CAPSULE, force=args.boot)
1587+
try:
1588+
pytransform_bootstrap(capsule=DEFAULT_CAPSULE, force=args.boot)
1589+
except Exception:
1590+
if args.func.__name__[1:] not in ('register', 'download'):
1591+
raise
15881592

15891593
logging.info(_version_info(verbose=0))
15901594
logging.info('Python %d.%d.%d', *sys.version_info[:3])

0 commit comments

Comments
 (0)