Skip to content

Commit

Permalink
issue #31
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtepkeev committed May 27, 2014
1 parent 740a7a9 commit cb3c8ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Changelog
``ResourceAttrError`` when calling non-existent resource attribute, see `Issue #30
<https://github.com/maxtepkeev/python-redmine/issues/30>`__ for details (thanks to
`hsum <https://github.com/hsum>`__)
- Fixed: `Issue #31 <https://github.com/maxtepkeev/python-redmine/issues/31>`__ (Unlimited
recursion was possible in some situations when on demand includes were used)

0.8.1 (2014-04-02)
++++++++++++++++++
Expand Down
2 changes: 1 addition & 1 deletion redmine/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __getattr__(self, item):

# If item is an include and should be requested from Redmine, let's do it
elif item in self._includes and self._attributes[item] is None:
self._attributes[item] = self.refresh(include=item)._attributes[item]
self._attributes[item] = self.refresh(include=item)._attributes[item] or []
return getattr(self, item)

try:
Expand Down

0 comments on commit cb3c8ef

Please sign in to comment.