Don't crash when reading invalid files
This commit is contained in:
parent
5473e68e60
commit
54e4d05837
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user