forked from mirrors/bookwyrm
Don't crash if we don't recognise the exclusive shelf.
This commit is contained in:
parent
543cc29ee1
commit
9ffab814af
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class ImportItem(models.Model):
|
|||
def shelf(self):
|
||||
''' the goodreads shelf field '''
|
||||
if self.data['Exclusive Shelf']:
|
||||
return GOODREADS_SHELVES[self.data['Exclusive Shelf']]
|
||||
return GOODREADS_SHELVES.get(self.data['Exclusive Shelf'])
|
||||
|
||||
@property
|
||||
def review(self):
|
||||
|
|
Loading…
Reference in a new issue