virt-manager: use DISPLAY in the error message only when it is set

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1038496
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2013-12-24 10:34:37 +01:00
parent 5c1ed03b89
commit 0724f1cdaa
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ def main():
# it avoids the issue
display = os.environ.get("DISPLAY", "")
msg = str(e)
if not display:
if display:
msg += ": Could not open display: %s" % display
logging.debug("".join(traceback.format_exc()))
print msg