Magic! Shit works. Books can be added.

This commit is contained in:
Michael Gregson 2009-03-11 02:08:25 -04:00
parent 1d7f739631
commit 29913099b8
1 changed files with 1 additions and 2 deletions

View File

@ -135,12 +135,11 @@ class BookAddPage(WizardPanel):
lib.Book(isbn=isbn, title=book.title,
year=book.year, publisher=book.publisher)
else:
sys.stderr.write("Fuck you.\n")
set_status("Book already exists, fucker.")
except PyMazonError, e:
sys.stderr.write("Book not added: " + e.message + "\n")
set_status("Amazon thinks this is not a book. Take it up with them.")
return False
class BookSearchPage(WizardPanel):