summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel <samuel@cendio.se>2013-10-24 04:22:44 -0700
committerSamuel <samuel@cendio.se>2013-10-24 04:22:44 -0700
commitb4e0b534d5d04d57265045b4baf49dd81555064b (patch)
tree0da95c4f120eedd812be9ac6119743ca2e1327c9
parent32b0567343aee7753b2b6be1bc1ee9a69657ba26 (diff)
parentbe4119f84fd56101f6a0acb07ae88f1a4238f322 (diff)
downloadwebsockify-b4e0b534d5d04d57265045b4baf49dd81555064b.tar.gz
Merge pull request #104 from stevschmid/patch-1
Fix crash when module is missing
-rw-r--r--websockify/websocket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/websockify/websocket.py b/websockify/websocket.py
index c40e638..4e28bd2 100644
--- a/websockify/websocket.py
+++ b/websockify/websocket.py
@@ -58,7 +58,7 @@ for mod, msg in [('numpy', 'HyBi protocol will be slower'),
globals()[mod] = __import__(mod)
except ImportError:
globals()[mod] = None
- self.msg("WARNING: no '%s' module, %s", mod, msg)
+ print("WARNING: no '%s' module, %s" % (mod, msg))
if multiprocessing and sys.platform == 'win32':
# make sockets pickle-able/inheritable
import multiprocessing.reduction