From 495c9086a464ba36e92a89193b45fe1de88aaaef Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 12 Mar 2014 17:45:44 +0100 Subject: [PATCH] fail with warning if no active volumes are found --- pandora_client/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 121a7f2..464be8f 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -582,6 +582,10 @@ class Client(object): conn, c = self._conn() volumes = self.active_volumes() + if not volumes: + print "no active volumes found" + return + for name in sorted(volumes): prefix = volumes[name] files = self.files(prefix)