mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-11 16:58:31 +03:00
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:
parent
5c1ed03b89
commit
0724f1cdaa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user