From b6a21d3613589054030e2c7994e4c133a51cac8f Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 07 Feb 2011 14:27:52 +0000 Subject: check to see if profile.get_color() returns None --- (limited to 'TurtleArt/tacollaboration.py') 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: -- cgit v0.9.1