hay86 / fdfs_client-py

fastdfs python client compatible with ver 4.0.6
GNU General Public License v3.0
106 stars 89 forks source link

Fix download with file_offset and download_bytes #6

Closed neverlee closed 6 years ago

neverlee commented 9 years ago
from fdfs_client.client import *
client = Fdfs_client("client.conf")
ret = client.download_to_buffer(afid, 3, 5)
print ret

Traceback (most recent call last): File "atest.py", line 16, in ret = client.download_to_buffer("tpupfs1/M00/00/00/CtwCr1WscGmAVmNjAAAAC5npnuQ0602068", 3, 5) File "/Volumes/Hmwork/myfdfs/fdfs_client/client.py", line 405, in download_to_buffer file_offset, download_bytes, \ UnboundLocalError: local variable 'file_offset' referenced before assignment