Merge dev/remoteFetch #2

Merged
giuliof merged 8 commits from dev/remoteFetch into master 2021-09-14 19:41:11 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 6c20ea6d0f - Show all commits

View File

@ -64,7 +64,10 @@ try:
# Retrieve last database update timestamp
luh = open(glob.conf['default']['outdir'] + '/lastupdate.txt', 'r')
lu = int(float(luh.read()))
try:
lu = int(float(luh.read()))
except ValueError:
lu = 0
luh.close()
logging.info("last database update timestamp is %d" % lu)
@ -103,7 +106,6 @@ try:
# Get a Python-friendly library struct from XML file
library = tcparser.getLibrary(cachefile, lu)
# TODO: properly handle missing file errors or things like this
### Get filters to search for books ###
try: