Fix cli
This commit is contained in:
parent
456a89be93
commit
0a06034c9f
@ -1,5 +1,5 @@
|
|||||||
# Relational
|
# Relational
|
||||||
# Copyright (C) 2010-2017 Salvo "LtWorf" Tomaselli
|
# Copyright (C) 2010-2020 Salvo "LtWorf" Tomaselli
|
||||||
#
|
#
|
||||||
# Relational is free software: you can redistribute it and/or modify
|
# Relational is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -137,7 +137,7 @@ def load_relation(filename: str, defname:Optional[str]=None) -> Optional[str]:
|
|||||||
"%s is not a valid relation name" % defname, ERROR_COLOR), file=sys.stderr)
|
"%s is not a valid relation name" % defname, ERROR_COLOR), file=sys.stderr)
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
relations[defname] = relation.relation(filename)
|
relations[defname] = relation.Relation(filename)
|
||||||
|
|
||||||
completer.add_completion(defname)
|
completer.add_completion(defname)
|
||||||
printtty(colorize("Loaded relation %s" % defname, COLOR_GREEN))
|
printtty(colorize("Loaded relation %s" % defname, COLOR_GREEN))
|
||||||
|
Loading…
Reference in New Issue
Block a user