Magic! Shit works. Books can be added.
authorMichael Gregson <mgregson@csclub.uwaterloo.ca>
Wed, 11 Mar 2009 06:08:25 +0000 (02:08 -0400)
committerMichael Gregson <mgregson@csclub.uwaterloo.ca>
Wed, 11 Mar 2009 06:08:25 +0000 (02:08 -0400)
ceo/urwid/library.py

index 4f777ea..3848ba8 100644 (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):