Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor fix

  • Loading branch information...
commit 01792a2eb86f6f0e5da150be7a81a93fd7c12c22 1 parent 5327eca
@sciunto authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 ZimArchivist/archive.py
View
5 ZimArchivist/archive.py
@@ -100,9 +100,8 @@ def run(self):
#Normally OK, but...
#Some links can raise ValueError
print('ValueError Fetchlink ' + str(e))
- #print(current_parsed)
except IOError as e:
- print('ValueError Fetchlink ' + str(e))
+ print('IOError Fetchlink ' + str(e))
#print(current_parsed)
img["src"] = os.path.relpath(outpath, self.htmlpath) # rel path
#end...
@@ -263,7 +262,7 @@ def make_archive_thread(file_dir, uuid, url):
timeout = 15
if mimetype == None:
- #Try to gess with urrllib if mimetype failed
+ #Try to guess with urrllib if mimetype failed
try:
fp = urlopen(url, timeout=timeout)
except urllib.error.HTTPError:
Please sign in to comment.
Something went wrong with that request. Please try again.