From 04bea8e8563dcd2f7c01dc49405b438d150c6ab6 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Sat, 18 Jan 2014 02:27:56 +0100 Subject: [PATCH] docs: Remove depdendency check from validate_environment() example --- docs/extensiondev.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/extensiondev.rst b/docs/extensiondev.rst index be68ffc5..517fd027 100644 --- a/docs/extensiondev.rst +++ b/docs/extensiondev.rst @@ -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