Skip to content

Commit

Permalink
Handle missing ws4py better
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 10, 2015
1 parent 0cb13bb commit 69e12fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/command/auto/__init__.py
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 69e12fc

Please sign in to comment.