1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-22 07:42:24 +00:00

Fix for OSError on Errored Comics; Fix for Wanted tab db error

This commit is contained in:
evilhero 2012-10-18 03:08:43 -04:00
parent e8e2a0ce31
commit 674b17966c

View file

@ -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