Crashes when username and password are null

Bug #694193 reported by Indie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gtkvncviewer
New
Undecided
Unassigned

Bug Description

Ubuntu 10.10
gtkvncviewer-0.4-2.2

I created a profile for a host that I'm doing a remote install on using anaconda that doesn't require a username or password. When I tried running gtkvncviewer again after saving the profile I got the following error:

Traceback (most recent call last):
  File "./gtkvncviewer.py", line 428, in <module>
    instance = GtkVncViewer()
  File "./gtkvncviewer.py", line 136, in __init__
    username, password = secret.split('\n')
ValueError: need more than 1 value to unpack

It doesn't handle the fact that the username and password are both null.

As a quick fix, I managed to get it working correctly with the attached patch though I don't know if that's the best way to handle the exception.

Revision history for this message
Indie (alanlitster) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.