use /tmp if media-cache is None/null, fixes #2794
This commit is contained in:
parent
30d5f1be0c
commit
8f36560d69
1 changed files with 4 additions and 1 deletions
|
@ -251,7 +251,10 @@ class Client(object):
|
||||||
return conn, conn.cursor()
|
return conn, conn.cursor()
|
||||||
|
|
||||||
def media_cache(self):
|
def media_cache(self):
|
||||||
return os.path.expanduser(self._config.get('media-cache', default_media_cache))
|
path = self._config.get('media-cache', default_media_cache)
|
||||||
|
if path is None:
|
||||||
|
path = '/tmp/pandora_client_media_cache'
|
||||||
|
return os.path.expanduser(path)
|
||||||
|
|
||||||
def get(self, key, default=None):
|
def get(self, key, default=None):
|
||||||
conn, c = self._conn()
|
conn, c = self._conn()
|
||||||
|
|
Loading…
Reference in a new issue