Same problem, here. The fix looks right to me.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1948362
Title:
UnboundLocalError: local variable 't' referenced before assignment
To manage
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: nvidia-prime (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1948362
Ran into this exact issue, and modifying line 198 to
```
if vendor.find('8086') != -1 or vendor.lower().find('1002') != -1:
```
successfully allowed me to use the utility. Thanks @Lialosiu.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed