Check that actor file exists

main
Bob Mottram 2020-01-19 20:43:03 +00:00
parent 2bac46cfb4
commit 6d0d9bf148
1 changed files with 4 additions and 1 deletions

View File

@ -375,7 +375,10 @@ def createCapabilitiesInbox(baseDir: str,nickname: str,domain: str,port: int, \
def personUpgradeActor(personJson: {},handle: str,filename: str) -> None: def personUpgradeActor(personJson: {},handle: str,filename: str) -> None:
"""Alter the actor to add any new properties """Alter the actor to add any new properties
""" """
if not os.path.isfile(filename):
print('WARN: actor file not found '+filename)
return
if not personJson: if not personJson:
personJson=loadJson(filename) personJson=loadJson(filename)
if not personJson.get('nomadicLocations'): if not personJson.get('nomadicLocations'):