Skip to content
Snippets Groups Projects
Unverified Commit 0f08c700 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

group_by_exception: Make origin_types a list

parent 4e6c8494
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,10 @@ def main(origin_types, loader_type):
if loader_type not in LOADER_TYPES:
raise ValueError('Bad input, loader type is one of %s' % LOADER_TYPES)
origin_types = origin_types + ['unknown']
if isinstance(origin_types, str):
origin_types = [origin_types]
origin_types.append('unknown')
group = group_by(origin_types, loader_type)
result = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment