Skip to content

Commit

Permalink
raise -> pass
Browse files Browse the repository at this point in the history
  • Loading branch information
xlcnd committed Feb 3, 2015
1 parent 5618b0c commit 85b034d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions isbnlib/_metadata.py
Expand Up @@ -17,14 +17,14 @@ def query(isbn, service='default', cache='default'):
cache = metadata_cache
if service != 'default' and service not in services: # pragma: no cover
raise NotRecognizedServiceError(service)
if cache is None: # pragma: no cover
if cache is None: # pragma: no cover
return services[service](isbn)
key = isbn + service
try:
if cache[key]:
return cache[key]
else: # pragma: no cover
raise
else: # pragma: no cover
pass
except:
meta = services[service](isbn)
if meta:
Expand Down

0 comments on commit 85b034d

Please sign in to comment.