fix models loading problem

This commit is contained in:
dmig 2018-12-09 13:11:08 +07:00
parent 31dab29aa7
commit 29c3a31a5b
No known key found for this signature in database
GPG key ID: A4A245B3AD37C4FC

View file

@ -44,7 +44,8 @@ try:
models = json.load(open(os.path.dirname(os.path.abspath(__file__)) + "/models/" + user + ".dat"))
# Put all models together into 1 array
encodings = [model["data"] for model in models]
for model in models:
encodings += model["data"]
except FileNotFoundError:
sys.exit(10)