From b38b509bbd907edfcf03c785c78979837c3af0ae Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Sat, 3 Jan 2009 15:48:44 +0000 Subject: [PATCH] minor change --- lastfm/stats.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lastfm/stats.py b/lastfm/stats.py index 2b9ef9e..198d657 100644 --- a/lastfm/stats.py +++ b/lastfm/stats.py @@ -79,5 +79,8 @@ class Stats(object): return self._reviews def __repr__(self): - return "" % self._subject.name + if hasattr(self._subject, 'name'): + return "" % self._subject.name + else: + return "" % self._subject \ No newline at end of file