convert between ibsn 10 and 13

This commit is contained in:
Mouse Reeve
2020-10-29 12:32:37 -07:00
parent 90cccc455e
commit 7febcec229
7 changed files with 97 additions and 24 deletions

View File

@ -80,7 +80,10 @@ class ImportItem(models.Model):
)
search_result = books_manager.first_search_result(search_term)
if search_result:
return books_manager.get_or_create_book(search_result.key)
try:
return books_manager.get_or_create_book(search_result.key)
except ConnectorException:
pass
@property
def isbn(self):