From 674b17966cb41de9c319aeef601205be6598a1ef Mon Sep 17 00:00:00 2001 From: evilhero Date: Thu, 18 Oct 2012 03:08:43 -0400 Subject: [PATCH] Fix for OSError on Errored Comics; Fix for Wanted tab db error --- mylar/webserve.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mylar/webserve.py b/mylar/webserve.py index eb2aca3e..60e523d4 100755 --- a/mylar/webserve.py +++ b/mylar/webserve.py @@ -71,10 +71,8 @@ class WebInterface(object): try: os.makedirs(str(comlocation)) logger.info(u"No directory found - So I created one at: " + str(comlocation)) - except OSError.e: - if e.errno != errno.EEXIST: - raise - + except OSError: + logger.error(u"Could not create directory for comic : " + str(comlocation)) if comic is None: raise cherrypy.HTTPRedirect("home") comicConfig = { @@ -351,7 +349,7 @@ class WebInterface(object): mvvalues = {"ComicID": myissue['ComicID'], "Status": "Wanted"} - myDB.upsert("wanted", mvvalues, mvcontroldict) + myDB.upsert("issues", mvvalues, mvcontroldict) return serve_template(templatename="upcoming.html", title="Upcoming", upcoming=upcoming, issues=issues) upcoming.exposed = True