mirror of https://github.com/kf7eel/hbnet.git
fix start issue
This commit is contained in:
parent
4a6d1714a8
commit
1469a523ef
|
|
@ -1831,7 +1831,10 @@ 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():
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue