Skip to content

Commit

Permalink
[#471] Add a __repr__ for SuppliedData
Browse files Browse the repository at this point in the history
This helps make debugging sentry errors easier.
  • Loading branch information
Bjwebb committed Mar 10, 2017
1 parent 95b502e commit aaa7fd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cove/input/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,8 @@ def download(self):
ContentFile(r.content))
else:
raise ValueError('No source_url specified.')

def __repr__(self):
return "<SuppliedData source_url={} original_file.name={}>".format(
repr(self.source_url),
repr(self.original_file.name))

0 comments on commit aaa7fd5

Please sign in to comment.