except IOError, msg:
if (msg[0] == "http error") and (msg[1] == -1):
bookmark.no_error = "The server did not return any header - it is not an error, actually"
- self.log(bookmark.no_error)
+ self.log(' no headers: %s' % bookmark.no_error)
else:
bookmark.error = get_error(msg)
- self.log(bookmark.error)
+ self.log(' Error: %s' % bookmark.error)
except EOFError:
bookmark.error = "Unexpected EOF (FTP server closed connection)"
- self.log(bookmark.error)
+ self.log(' EOF: %s' % bookmark.error)
except RedirectException, msg:
bookmark.moved = str(msg)
- self.log(bookmark.moved)
+ self.log(' Moved: %s' % bookmark.moved)
except KeyboardInterrupt:
self.log("Keyboard interrupt (^C)")
import traceback
traceback.print_exc()
bookmark.error = "Exception!"
- self.log(bookmark.error)
+ self.log(' Exception: %s' % bookmark.error)
finally:
self.finish_check_url(bookmark)