Skip to content

Commit

Permalink
Fix: 'DataRange' missing '_protected'
Browse files Browse the repository at this point in the history
Avoid bug:
  [AttributeError]                                  
  'DataRange' object has no attribute '_protected'
  • Loading branch information
IvanYaxa authored May 28, 2018
1 parent 91fb71a commit 53b5afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygsheets/datarange.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def __repr__(self):
range_str = self.range
if self.worksheet:
range_str = str(self.range)
protected_str = " protected" if self._protect_id else ""
protected_str = " protected" if hasattr(self, '_protected') and self._protected else ""

return '<%s %s %s%s>' % (self.__class__.__name__, str(self._name), range_str, protected_str)

Expand Down

0 comments on commit 53b5afb

Please sign in to comment.