From 12c80c502103d6fd6cbbbb53718e59fa86612376 Mon Sep 17 00:00:00 2001
From: catborise <catborise@gmail.com>
Date: Wed, 8 Aug 2018 13:59:19 +0300
Subject: [PATCH] python does not approve raise without type. raise exception
 added

---
 console/novncd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/console/novncd b/console/novncd
index cff4376..11aeae7 100755
--- a/console/novncd
+++ b/console/novncd
@@ -159,7 +159,7 @@ class CompatibilityMixIn(object):
             if conntype != CONN_SSH:
                 self.msg("Need a tunnel to access console but can't mount " +
                          "one because it's not a SSH host")
-                raise
+                raise Exception(self.msg)
             try:
                 # generate a string with all placeholders to avoid TypeErrors
                 # in sprintf
@@ -175,7 +175,7 @@ class CompatibilityMixIn(object):
             except Exception as e:
                 self.msg("Fail to open tunnel : %s" % e)
                 raise
-            self.msg("Tunnel openned")
+            self.msg("Tunnel opened")
         else:
             # Direct access
             self.msg("connecting to: %s:%s" % (connhost, console_port))