docs: Remove depdendency check from validate_environment() example
This commit is contained in:
parent
06abe7c5e0
commit
04bea8e856
@ -299,10 +299,10 @@ This is ``mopidy_soundspot/__init__.py``::
|
|||||||
return SoundspotCommand()
|
return SoundspotCommand()
|
||||||
|
|
||||||
def validate_environment(self):
|
def validate_environment(self):
|
||||||
try:
|
# Any manual checks of the environment to fail early.
|
||||||
import pysoundspot
|
# Dependencies described by setup.py are checked by Mopidy, so you
|
||||||
except ImportError as e:
|
# should not check their presence here.
|
||||||
raise exceptions.ExtensionError('pysoundspot library not found', e)
|
pass
|
||||||
|
|
||||||
def setup(self, registry):
|
def setup(self, registry):
|
||||||
# You will typically only do one of the following things in a
|
# You will typically only do one of the following things in a
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user