New builtin: refresh that doesn't shutdown modules but refresh kernel code
This commit is contained in:
parent
79251393ff
commit
010ca98ffd
3 changed files with 20 additions and 2 deletions
|
@ -40,6 +40,8 @@ def parse_file(filename):
|
|||
try:
|
||||
parser.parse(open(filename, "r"))
|
||||
return mod.root
|
||||
except IOError:
|
||||
return module_state.ModuleState("nemubotstate")
|
||||
except:
|
||||
if mod.root is None:
|
||||
return module_state.ModuleState("nemubotstate")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue