Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

疑似bug一枚 #22

Closed
wants to merge 1 commit into from
Closed

疑似bug一枚 #22

wants to merge 1 commit into from

Conversation

ccdos
Copy link

@ccdos ccdos commented Mar 30, 2014

当 同步当前目录成功后, 紧接着立即再同步一次,报错:

Traceback (most recent call last):
File "/root/bypy.py", line 2503, in
main()
File "/root/bypy.py", line 2463, in main
result = getattr(by, args.command[0])(*uargs)
File "/root/bypy.py", line 1493, in upload
return self.__upload_dir(lpath, rpath, ondup)
File "/root/bypy.py", line 1428, in __upload_dir
os.path.walk(localpath, self.__walk_upload, (localpath, remotepath, ondup))
File "/root/GreenOpenERP-8.0-latest-linux-x64/python/bin/../../python/lib/python2.7/posixpath.py", line 238, in walk
func(arg, top, names)
File "/root/bypy.py", line 1417, in __walk_upload
if subresult == ENoError and self.__verify_current_file(self.__remote_json, False):
File "/root/bypy.py", line 1121, in __verify_current_file
self.pd("Local file size : {}".format(self.__current_file_size))
AttributeError: 'ByPy' object has no attribute '_ByPy__current_file_size'

当 同步当前目录成功后, 紧接着立即再同步一次,报错:


Traceback (most recent call last):
  File "/root/bypy.py", line 2503, in <module>
    main()
  File "/root/bypy.py", line 2463, in main
    result = getattr(by, args.command[0])(*uargs)
  File "/root/bypy.py", line 1493, in upload
    return self.__upload_dir(lpath, rpath, ondup)
  File "/root/bypy.py", line 1428, in __upload_dir
    os.path.walk(localpath, self.__walk_upload, (localpath, remotepath, ondup))
  File "/root/GreenOpenERP-8.0-latest-linux-x64/python/bin/../../python/lib/python2.7/posixpath.py", line 238, in walk
    func(arg, top, names)
  File "/root/bypy.py", line 1417, in __walk_upload
    if subresult == ENoError and self.__verify_current_file(self.__remote_json, False):
  File "/root/bypy.py", line 1121, in __verify_current_file
    self.pd("Local file size : {}".format(self.__current_file_size))
AttributeError: 'ByPy' object has no attribute '_ByPy__current_file_size'
@ccdos
Copy link
Author

ccdos commented Mar 30, 2014

上面的修改 是 错误的

仅仅是 避免了程序报错,对目录的 尺寸进行计算了,

请直接拒了吧 ,

不过还请关注 这个bug

@houtianze
Copy link
Owner

感谢反馈和修改,这个大概知道是什么地方的问题了,估计今天晚上我修正一下。

@houtianze
Copy link
Owner

改了,应该解决了这个bug。

直接拿@collielee 的改动(#19
commit: houtianze/bypy/@c6e205087e0e879ad241359bafdffcf27caf7afc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants