Skip to content

Commit

Permalink
pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
xlcnd committed Jul 7, 2014
1 parent 1b1040e commit b091094
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ omit =
*__init__*
*files.py
*cache*
*exceptions*


# Regexes for lines to exclude from consideration
Expand Down
4 changes: 2 additions & 2 deletions isbnlib/_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ def query(isbn, service='default', cache='default'):
isbn = ean
if cache == 'default':
cache = metadata_cache
if service != 'default' and service not in services:
if service != 'default' and service not in services: # pragma: no cover
raise NotRecognizedServiceError(service)
if cache is None: # pragma: no cover
return services[service](isbn)
key = isbn + service
try:
if cache[key]:
return cache[key]
else:
else: # pragma: no cover
raise
except:
meta = services[service](isbn)
Expand Down

0 comments on commit b091094

Please sign in to comment.