Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spectral/graphics/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def get_rgb_meta(source, bands=None, **kwargs):
if k not in _get_rgb_kwargs:
raise ValueError('Invalid keyword: {0}'.format(k))

if not bands:
if bands is None:
bands = []
if len(bands) not in (0, 1, 3):
raise Exception("Invalid number of bands specified.")
Expand Down