amnong / easywebdav

A WebDAV Client in Python
http://pypi.python.org/pypi/easywebdav/
ISC License
207 stars 113 forks source link

Fix handling empty property of WebDav object #36

Open ffoxin opened 9 years ago

ffoxin commented 9 years ago

Folders on server may have size attribute represented as empty string. Hence, it's size cause crash while retrieving size of object via int('').

sashabaranov commented 9 years ago

Should looked here before making my pullrequest :)

https://github.com/amnong/easywebdav/pull/37

This one-liner becomes too big with one more if by my taste.