db and checks : Add check for trailing comma. Format and fix db.
This commit is contained in:
parent
edcff12fc9
commit
446b2d9c7b
3 changed files with 5 additions and 1 deletions
3
check.py
3
check.py
|
@ -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 = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue