Added assertion for parameterized download color picker.

This commit is contained in:
Austin Anderson 2015-05-30 15:21:34 -04:00
parent a8d2dbfdfb
commit 7b5d2ace24

View File

@ -362,6 +362,7 @@ class DownloadItem(QObject):
Args:
position: The color type requested, can be 'fg' or 'bg'.
"""
assert position in ("fg", "bg")
start = config.get('colors', 'downloads.{}.start'.format(position))
stop = config.get('colors', 'downloads.{}.stop'.format(position))
system = config.get('colors', 'downloads.{}.system'.format(position))