summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2015-02-18 20:06:56 +0100
committerYves Fischer <yvesf-git@xapek.org>2015-02-18 20:06:56 +0100
commitbe4ef4404430018e11a1b4d7503d0d5bd9de3c8e (patch)
tree3f66a29b7a31015084ae6c9a8cd6b2de35bfdba8
parent546e1f3c7714e7e767c6e46034db89fbe912888f (diff)
downloadfuse-httpfs-be4ef4404430018e11a1b4d7503d0d5bd9de3c8e.tar.gz
fuse-httpfs-be4ef4404430018e11a1b4d7503d0d5bd9de3c8e.zip
Fix small typo
-rwxr-xr-xfuse-httpfs.py4
1 files 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: