forked from indymedia/epicyon
Check that actor file exists
parent
2bac46cfb4
commit
6d0d9bf148
|
@ -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'):
|
||||||
|
|
Loading…
Reference in New Issue