We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 173a6ce + 4e66c0f commit bda5bcaCopy full SHA for bda5bca
gpiozero/pins/data.py
@@ -419,7 +419,10 @@ def from_style_content(cls, format_spec):
419
style = 'color' if cls._term_supports_color() else 'mono'
420
if len(content) > 1:
421
raise ValueError('cannot specify more than one content element')
422
- content = content.pop()
+ try:
423
+ content = content.pop()
424
+ except KeyError:
425
+ content = 'full'
426
return cls(style == 'color'), content
427
428
def __call__(self, format_spec):
0 commit comments