Commit 2cd67067 authored by Anaël Beutot's avatar Anaël Beutot
Browse files

Fix vncport value is crap or not present

parent d8818121
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -127,8 +127,11 @@ def vncport(dom):
        logger.exception('VNCPort')
        raise

    try:
        if 0 < int(port) < 65536:
            return port
    except (TypeError, ValueError):
        pass

    return