error: Don't print 'None' in validation error dialog

This commit is contained in:
Cole Robinson 2012-01-17 10:29:16 -05:00
parent 1ff601138f
commit 10d2c245c3
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ class vmmErrorDialog(vmmGObject):
dtype = gtk.MESSAGE_ERROR
buttons = gtk.BUTTONS_OK
self._simple_dialog(dtype, buttons, str(text1), str(text2),
self._simple_dialog(dtype, buttons,
str(text1),
text2 and str(text2) or "",
str(title), async)
return False