From 6c010157b60e52f2b7130503914e22480cf0b284 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Jan 2010 13:27:30 -0700 Subject: [PATCH] Fix #4498 (Upload of books to PRS 600 goes wrong and will not upload tags) --- src/calibre/devices/prs505/books.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/devices/prs505/books.py b/src/calibre/devices/prs505/books.py index 8f054a1144..623f6c19ad 100644 --- a/src/calibre/devices/prs505/books.py +++ b/src/calibre/devices/prs505/books.py @@ -187,7 +187,7 @@ class BookList(_BookList): self.remove_book(name) node = self.document.createElement(self.prefix + "text") - mime = MIME_MAP[name.rpartition('.')[-1].lower()] + mime = MIME_MAP.get(name.rpartition('.')[-1].lower(), MIME_MAP['epub']) cid = self.max_id()+1 try: sourceid = str(self[0].sourceid) if len(self) else '1'