Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix unhandled exception if no CDDB entries are found

Update the cddb API to return an empty list when no matches are found,
rather than raising a NoMatchesError.  NoMatchesError is still raised if
query() returns result IDs, but one or more of the IDs cannot be found
when read() is called.
  • Loading branch information...
commit d01142e0dd41daf0a04d211c2e13dd290895db12 1 parent 6b9f1cd
Adam Simpkins authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/amass/cddb/cddbp.py
2  src/amass/cddb/cddbp.py
View
@@ -106,7 +106,7 @@ def query(self, toc):
matches = self.readUntilDot()
elif code == 211 or code == 202:
# No match found
- raise err.NoMatchesError(disc_id)
+ return []
else:
raise err.ProtocolError('server %s:%s responded with unexpected '
'query response code %d: %r' %
Please sign in to comment.
Something went wrong with that request. Please try again.