Don't crash when reading invalid files

master
Salvo 'LtWorf' Tomaselli 2017-06-24 10:38:56 +07:00
parent 5473e68e60
commit 54e4d05837
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 1 additions and 1 deletions

@ -133,7 +133,7 @@ def load_relation(filename, defname=None):
printtty(colorize("Loaded relation %s" % defname, COLOR_GREEN))
return defname
except Exception as e:
print(colorize(e, ERROR_COLOR), file=sys.stderr)
print(colorize(str(e), ERROR_COLOR), file=sys.stderr)
return None