Skip to content

Commit

Permalink
docs: Remove depdendency check from validate_environment() example
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Jan 18, 2014
1 parent 06abe7c commit 04bea8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/extensiondev.rst
Expand Up @@ -299,10 +299,10 @@ This is ``mopidy_soundspot/__init__.py``::
return SoundspotCommand()

def validate_environment(self):
try:
import pysoundspot
except ImportError as e:
raise exceptions.ExtensionError('pysoundspot library not found', e)
# Any manual checks of the environment to fail early.
# Dependencies described by setup.py are checked by Mopidy, so you
# should not check their presence here.
pass

def setup(self, registry):
# You will typically only do one of the following things in a
Expand Down

0 comments on commit 04bea8e

Please sign in to comment.