db and checks : Add check for trailing comma. Format and fix db.

This commit is contained in:
Philippe Groarke 2018-07-04 16:56:11 -04:00
parent edcff12fc9
commit 446b2d9c7b
3 changed files with 5 additions and 1 deletions

View file

@ -73,6 +73,9 @@ class Mapping:
}
def __init__(self, mapping_string, line_number, add_missing_platform = False):
if not mapping_string.endswith(",\n") and not mapping_string.endswith(","):
raise ValueError("Mapping should end with comma (,)")
self.guid = ""
self.name = ""
self.platform = ""