From 903a46158ea8daa17ebf9968ec6fab071345d736 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 06 Feb 2011 17:47:15 +0000 Subject: handle colors is None case --- (limited to 'TurtleArt/tacollaboration.py') diff --git a/TurtleArt/tacollaboration.py b/TurtleArt/tacollaboration.py index 2b1c074..0bebe67 100644 --- a/TurtleArt/tacollaboration.py +++ b/TurtleArt/tacollaboration.py @@ -314,6 +314,8 @@ class Collaboration(): colors = profile.get_color().to_string() else: colors = self._activity.get_colors() + if colors is None: + colors = ['#008000', '#00A000'] return colors -- cgit v0.9.1