docs: Remove depdendency check from validate_environment() example

This commit is contained in:
Stein Magnus Jodal 2014-01-18 02:27:56 +01:00
parent 06abe7c5e0
commit 04bea8e856

View File

@ -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