fix start issue

This commit is contained in:
KF7EEL 2022-10-03 12:38:58 -07:00
parent 4a6d1714a8
commit 1469a523ef
1 changed files with 5 additions and 2 deletions

View File

@ -1831,8 +1831,11 @@ if __name__ == '__main__':
# Create folder so hbnet.py can access list PEER connections
print(CONFIG['LOGGER']['LOG_NAME'])
if Path('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/')).exists():
os.remove('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/*'))
pass
try:
os.remove('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/*'))
except Exception as e:
logger.error(e)
pass
else:
Path('/tmp/' + (CONFIG['LOGGER']['LOG_NAME'] + '_PEERS/')).mkdir()