Fix FutureWarning
This commit is contained in:
parent
024e0e5e09
commit
abfb386e13
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ class GetMetadataTask(common.libsync_mixin, backgroundthread.Task):
|
||||||
def _collections(self, item):
|
def _collections(self, item):
|
||||||
global COLLECTION_MATCH, COLLECTION_XMLS
|
global COLLECTION_MATCH, COLLECTION_XMLS
|
||||||
api = API(item['xml'][0])
|
api = API(item['xml'][0])
|
||||||
if not COLLECTION_MATCH:
|
if COLLECTION_MATCH is None:
|
||||||
COLLECTION_MATCH = PF.collections(api.library_section_id())
|
COLLECTION_MATCH = PF.collections(api.library_section_id())
|
||||||
if not COLLECTION_MATCH:
|
if COLLECTION_MATCH is None:
|
||||||
LOG.error('Could not download collections')
|
LOG.error('Could not download collections')
|
||||||
return
|
return
|
||||||
# Extract what we need to know
|
# Extract what we need to know
|
||||||
|
|
Loading…
Add table
Reference in a new issue