From be4ef4404430018e11a1b4d7503d0d5bd9de3c8e Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Wed, 18 Feb 2015 20:06:56 +0100 Subject: Fix small typo --- fuse-httpfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuse-httpfs.py b/fuse-httpfs.py index e4b38b2..7bb5a5e 100755 --- a/fuse-httpfs.py +++ b/fuse-httpfs.py @@ -82,9 +82,9 @@ class File(Path): if r.status_code == 200 or r.status_code == 206: d = r.content logging.info("Received {} bytes".format(len(d))) - if len(d) <= size: + if len(d) > size: errormsg = "size {} > than expected {}".format(len(d), size) - logger.error(errormsg) + logging.error(errormsg) raise fuse.FuseOSError(EIO) return d else: -- cgit v1.2.1