state.nodes might not exist

This commit is contained in:
j 2016-03-26 17:55:12 +01:00
parent a1ea4943c5
commit 8872141032
1 changed files with 2 additions and 1 deletions

View File

@ -615,4 +615,5 @@ def add_local_info(data):
u.update_name()
u.info['local'] = data
u.save()
state.nodes.queue('add', u.id)
if state.nodes:
state.nodes.queue('add', u.id)