fix get_locator_xyz if it's not loaded
This commit is contained in:
parent
776ec0b348
commit
0e5b10b586
1 changed files with 4 additions and 1 deletions
|
@ -338,7 +338,10 @@ class MeshNode(models.Model):
|
|||
return dst_node.get_uplink()
|
||||
|
||||
def get_locator_xyz(self):
|
||||
locator = Locator.load()
|
||||
try:
|
||||
locator = Locator.load()
|
||||
except FileNotFoundError:
|
||||
return None
|
||||
return locator.get_xyz(self.address)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue