-
Notifications
You must be signed in to change notification settings - Fork 145
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
properties method failed when no props defined #89
Comments
What's the status of this? |
Perhaps a simple change like this?
|
idbrii
added a commit
to idbrii/PySvn
that referenced
this issue
Apr 29, 2021
Fix dsoprea#89: properties method failed when no props defined When a file has no properties, the xml doesn't contain 'target' and target_elem is None. To conform to the documentation for properties, return an empty dict (instead of None). Test for both no properties and mime type property (writing a binary file in the simplest way I can find).
idbrii
added a commit
to idbrii/PySvn
that referenced
this issue
Apr 29, 2021
Fix dsoprea#89: properties method failed when no props defined When a file has no properties, the xml doesn't contain 'target' and target_elem is None. To conform to the documentation for properties, return an empty dict (instead of None). Test for both no properties and mime type property (writing a binary file in the simplest way I can find).
idbrii
added a commit
to idbrii/PySvn
that referenced
this issue
Apr 30, 2021
Fix dsoprea#89: properties method failed when no props defined When a file has no properties, the xml doesn't contain 'target' and target_elem is None. To conform to the documentation for properties, return an empty dict (instead of None). Test for both no properties and mime type property (writing a binary file in the simplest way I can find that works in py2 and py3).
idbrii
added a commit
to idbrii/PySvn
that referenced
this issue
Apr 30, 2021
Fix dsoprea#89: properties method failed when no props defined When a file has no properties, the xml doesn't contain 'target' and target_elem is None. To conform to the documentation for properties, return an empty dict (instead of None). Test for both no properties and mime type property (writing a binary file in the simplest way I can find that works in py2 and py3).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ask for properties on an element taht does ot have properties defined raise an AttributeError NoneType as no attribute findall
svn\common.py", line 197, in properties
for p in target_elem.findall('property')]
AttributeError: 'NoneType' object has no attribute 'findall'
Need to robustify I think
The text was updated successfully, but these errors were encountered: