Traceback (most recent call last):
File "C:/fake_path/verify_attestation.py", line 142, in
if use_prompt:
NameError: name 'use_prompt' is not defined
Environment
Python version: 3.10.2
OS: Windows 11
Quick fix
Add
use_prompt = None
to main body of code immediately after imports
Guess at issue
use_prompt is defined within a function and not the main block. When called on line 142 it is not defined as it is a function only variable. Defining it in main removes this problem.
Issue
verify_attestation.py throws error
Environment
Python version: 3.10.2 OS: Windows 11
Quick fix
Add
to main body of code immediately after imports
Guess at issue
use_prompt is defined within a function and not the main block. When called on line 142 it is not defined as it is a function only variable. Defining it in main removes this problem.