fixed messed up message for missing bootstrap file

This commit is contained in:
Kevin Froman 2018-04-22 18:38:32 -05:00
parent c9cfeac303
commit 4ff6baa279
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B

View File

@ -57,8 +57,6 @@ class Core:
if os.path.exists('data/hs/hostname'): if os.path.exists('data/hs/hostname'):
with open('data/hs/hostname', 'r') as hs: with open('data/hs/hostname', 'r') as hs:
self.hsAdder = hs.read() self.hsAdder = hs.read()
else:
logger.warn('Warning: address bootstrap file not found ' + self.bootstrapFileLocation)
# Load bootstrap address list # Load bootstrap address list
if os.path.exists(self.bootstrapFileLocation): if os.path.exists(self.bootstrapFileLocation):
@ -66,6 +64,8 @@ class Core:
bootstrap = bootstrap.read() bootstrap = bootstrap.read()
for i in bootstrap.split('\n'): for i in bootstrap.split('\n'):
self.bootstrapList.append(i) self.bootstrapList.append(i)
else:
logger.warn('Warning: address bootstrap file not found ' + self.bootstrapFileLocation)
self._utils = onionrutils.OnionrUtils(self) self._utils = onionrutils.OnionrUtils(self)
# Initialize the crypto object # Initialize the crypto object