Skip to content

Commit cb3c8ef

Browse files
committed
issue #31
1 parent 740a7a9 commit cb3c8ef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.rst

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Changelog
1111
``ResourceAttrError`` when calling non-existent resource attribute, see `Issue #30
1212
<https://github.com/maxtepkeev/python-redmine/issues/30>`__ for details (thanks to
1313
`hsum <https://github.com/hsum>`__)
14+
- Fixed: `Issue #31 <https://github.com/maxtepkeev/python-redmine/issues/31>`__ (Unlimited
15+
recursion was possible in some situations when on demand includes were used)
1416

1517
0.8.1 (2014-04-02)
1618
++++++++++++++++++

redmine/resources.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __getattr__(self, item):
143143

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

149149
try:

0 commit comments

Comments
 (0)