diff options
author | Walter Bender <walter@sugarlabs.org> | 2011-02-07 14:27:52 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2011-02-07 14:27:52 (GMT) |
commit | b6a21d3613589054030e2c7994e4c133a51cac8f (patch) | |
tree | 6e6c8fdebd6dff66df34c1d123e0fe979984eba1 /TurtleArt/tacollaboration.py | |
parent | 0f6ec143612b29306e20b0512a8b1ea3b2cb7662 (diff) |
check to see if profile.get_color() returns None
Diffstat (limited to 'TurtleArt/tacollaboration.py')
-rw-r--r-- | TurtleArt/tacollaboration.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/TurtleArt/tacollaboration.py b/TurtleArt/tacollaboration.py index 83ce835..5141667 100644 --- a/TurtleArt/tacollaboration.py +++ b/TurtleArt/tacollaboration.py @@ -315,8 +315,10 @@ class Collaboration(): return self._tw.nick def _get_colors(self): + colors = None if profile: - colors = profile.get_color().to_string() + if profile.get_color() is not None: + colors = profile.get_color().to_string() else: colors = self._activity.get_colors() if colors is None: |