in scripts/awsicons/icon.py [0:0]
def _color_name(self, color_name):
"""Returns hex color for provided name from config Defaults"""
try:
for color in self.config["Defaults"]["Colors"]:
if color == color_name:
return self.config["Defaults"]["Colors"][color]
print(
f"ERROR: Color {color_name} not found in default color list, returning Black"
)
return "#000000"
except KeyError as e:
print(f"Error: {e}")
print(
"config.yml requires minimal config section, please see documentation"
)
sys.exit(1)