Crashes when username and password are null
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtkvncviewer |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 10.10
gtkvncviewer-
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
instance = GtkVncViewer()
File "./gtkvncviewer
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.