Fixing handling of unsupported sources.

This commit is contained in:
Maxime Lamothe-Brassard 2019-10-27 12:37:06 -05:00
parent 0fe72d6133
commit 60b20a76a6

View File

@ -95,7 +95,7 @@ class LimaCharlieBackend(BaseBackend):
service = ""
mappingKey = "%s/%s/%s" % (product, category, service)
topFilter, preCond, mappings, isAllStringValues = _allFieldMappings.get(mappingKey, tuple([None, None, None]))
topFilter, preCond, mappings, isAllStringValues = _allFieldMappings.get(mappingKey, tuple([None, None, None, None]))
if mappings is None:
raise NotImplementedError("Log source %s/%s/%s not supported by backend." % (product, category, service))