Skip to content

Commit

Permalink
Merge pull request #21 from bardal/master
Browse files Browse the repository at this point in the history
Raise an AttributeError if a requested attribute doesn't exist within se...
  • Loading branch information
ssbarnea committed Feb 6, 2015
2 parents 5e16dc0 + 6f480a8 commit 6dedff2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jira/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def __getattr__(self, item):
except Exception as e:
if item in self.raw:
return self.raw[item]
else:
raise AttributeError("%r object has no attribute %r" % (self.__class__, item))

def find(self, id, params=None):

Expand Down

0 comments on commit 6dedff2

Please sign in to comment.