Newline at end of JSON

This commit is contained in:
Ian Gulliver
2016-04-25 11:52:21 -07:00
parent a49872f808
commit 94a2923a38

View File

@@ -105,6 +105,7 @@ class Imager(object):
with tempfile.NamedTemporaryFile(dir=self._db_dir, delete=False, mode='w') as fh:
try:
json.dump(db, fh)
fh.write('\n')
fh.flush()
os.rename(fh.name, db_path)
except Exception: