Skip to content

Commit d372248

Browse files
committed
improve if block logic
1 parent 48eb2f0 commit d372248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ccos/norm/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def color(self):
7676
color = self.own_color
7777
if color is None and self.group is not None:
7878
color = self.group.color
79-
if color is None:
79+
elif color is None:
8080
color = COLORS["BLACK"]
8181
elif color in COLORS:
8282
color = COLORS[color]

0 commit comments

Comments
 (0)