summaryrefslogtreecommitdiffstats
path: root/fb.py
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-07-08 20:51:28 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-08 20:51:28 +0200
commit45ee57fd19d574739d9f92272ba2987f7ebf86e5 (patch)
tree83023042486fb095e390787da14c016e23f7d889 /fb.py
parent100bb5729a98e3cebd65d7138fe08630205be762 (diff)
Fix exception when uploading 0-byte file
This could be triggered by uploading /proc/cpuinfo The code actually replaces an object with a string and breaks later access to object variables. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb.py')
-rwxr-xr-xfb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.py b/fb.py
index 7497ee2..44b4461 100755
--- a/fb.py
+++ b/fb.py
@@ -603,7 +603,7 @@ class FBClient:
return
if os.stat(file.path)[6] == 0:
- file = self.create_temp_copy(file.path)
+ file.path = self.create_temp_copy(file.path)
if os.path.isdir(file.path):
file.path = self.create_tarball(file.path)