New builtin: refresh that doesn't shutdown modules but refresh kernel code

This commit is contained in:
Némunaire 2012-07-10 12:14:11 +02:00
parent 79251393ff
commit 010ca98ffd
3 changed files with 20 additions and 2 deletions

View file

@ -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")