Getting NameErrors and Global not define errors

python

#1

<Hi Guys, I’m a total newbie here and was actually able to fix all the syntax errors, but now keep getting these errors and I have no clue how to fix them.

<I’m getting this log errors on line 30 and line 235

. Error Type: <type ‘exceptions.NameError’>
Error Contents: global name ‘Password’ is not defined
Traceback (most recent call last)
NameError: global name ‘Password’ is not defined:>

.>Here’s the code for line 30:>

```python

def password():
keyboard = xbmc.Keyboard(heading=‘Enter Password’)
keyboard.doModal()
if (keyboard.isConfirmed()):
return unicode(keyboard.getText(), “utf-8”)
return False

<do not remove the three backticks above>

#2

Here’s is line 234 & 235

And thank you for any help I can get. Appreciate it.

if mode==None or url==None or len(url)<1:
CATEGORIES()


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.