mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-20 15:17:06 +00:00
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):
|
def shelf(self):
|
||||||
''' the goodreads shelf field '''
|
''' the goodreads shelf field '''
|
||||||
if self.data['Exclusive Shelf']:
|
if self.data['Exclusive Shelf']:
|
||||||
return GOODREADS_SHELVES[self.data['Exclusive Shelf']]
|
return GOODREADS_SHELVES.get(self.data['Exclusive Shelf'])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def review(self):
|
def review(self):
|
||||||
|
|
Loading…
Reference in a new issue