work on encryption

This commit is contained in:
Kevin Froman 2018-04-15 03:46:50 -05:00
parent 2071def07b
commit 3a2efce637
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
2 changed files with 9 additions and 9 deletions

View file

@ -249,15 +249,15 @@ class Onionr:
'''
Create a private message and send it
'''
while True:
invalidID = True
while invalidID:
try:
peer = logger.readline('Peer to send to: ')
except KeyboardInterrupt:
break
else:
if self.onionrUtils.validatePubKey(peer):
break
invalidID = False
else:
logger.error('Invalid peer ID')
else: