UnboundLocalError: local variable 't' referenced before assignment
Bug #1948362 reported by
Lialosiu
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-prime (Ubuntu) |
Fix Released
|
Medium
|
Dan Bungert |
Bug Description
```
Traceback (most recent call last):
File "/usr/bin/
switcher.
File "/usr/bin/
if not self._has_
File "/usr/bin/
if t.find('8086') != -1 or t.lower(
UnboundLocalError: local variable 't' referenced before assignment
```
at file `prime-select`, line 198
https:/
that `t` should be `vendor` I think. :)
Related branches
~gary-wzl77/ubuntu/+source/nvidia-prime:fix_undefined_variable
Merged
into
ubuntu/+source/nvidia-prime:ubuntu/devel
at
revision 3a718d24ea8f884e362700f4f4baa88c461a40dc
- Ubuntu Sponsors: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedprime-select (+1/-1)
To post a comment you must log in.
Ran into this exact issue, and modifying line 198 to
``` lower() .find(' 1002') != -1:
if vendor.find('8086') != -1 or vendor.
```
successfully allowed me to use the utility. Thanks @Lialosiu.