Skip to content
Permalink
Browse files
Handle missing ws4py better
  • Loading branch information
ralsina committed Jun 10, 2015
1 parent 0cb13bb commit 69e12fcbe3015bb08a0dc6ef180e0d935b8d16c9
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugins/command/auto/__init__.py
@@ -46,7 +46,7 @@
from ws4py.server.wsgiutils import WebSocketWSGIApplication
from ws4py.messaging import TextMessage
except ImportError:
WebSocket = None
WebSocket = object
try:
import pyinotify
except ImportError:
@@ -115,7 +115,7 @@ def _execute(self, options, args):

self.logger = get_logger('auto', self.site.loghandlers)

if WebSocket is None:
if WebSocket is object:
req_missing(['ws4py'], 'use the "auto" command')
return
if pyinotify is None:

0 comments on commit 69e12fc

Please sign in to comment.