Ignore ModuleNotFoundError in yli.reload

This commit is contained in:
RunasSudo 2022-11-29 23:08:31 +11:00
parent 645cb7a85e
commit 5b08784498
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -28,4 +28,7 @@ def reload_me():
for k, v in list(sys.modules.items()):
if k == 'yli' or k.startswith('yli.'):
importlib.reload(v)
try:
importlib.reload(v)
except ModuleNotFoundError:
pass