mirror of https://github.com/evilhero/mylar
fix: git constant message about Update - will work as normal now with development branch, fix: Removed the 'None' directory creation problem
This commit is contained in:
parent
a46f43a6cf
commit
05dd676cc9
|
@ -1 +1 @@
|
|||
MYLAR_VERSION = "master"
|
||||
MYLAR_VERSION = "development"
|
||||
|
|
|
@ -21,7 +21,7 @@ from mylar import logger, version
|
|||
import lib.simplejson as simplejson
|
||||
|
||||
user = "evilhero"
|
||||
branch = "master"
|
||||
branch = "development"
|
||||
|
||||
def runGit(args):
|
||||
|
||||
|
|
|
@ -64,19 +64,6 @@ class WebInterface(object):
|
|||
issues = myDB.select('SELECT * from issues WHERE ComicID=? order by Int_IssueNumber DESC', [ComicID])
|
||||
if comic is None:
|
||||
raise cherrypy.HTTPRedirect("home")
|
||||
else:
|
||||
# make sure comic dir exists..
|
||||
comlocation = comic['ComicLocation']
|
||||
if os.path.isdir(str(comlocation)): pass
|
||||
#logger.info(u"Directory (" + str(comlocation) + ") already exists! Continuing...")
|
||||
else:
|
||||
print ("Directory doesn't exist!")
|
||||
try:
|
||||
os.makedirs(str(comlocation))
|
||||
logger.info(u"No directory found - So I created one at: " + str(comlocation))
|
||||
except OSError:
|
||||
logger.error(u"Could not create directory for comic : " + str(comlocation))
|
||||
|
||||
comicConfig = {
|
||||
"comiclocation" : mylar.COMIC_LOCATION
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue