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:
parent
e8e2a0ce31
commit
674b17966c
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue