work on pm and fixed broken pex when none

This commit is contained in:
Kevin Froman 2018-04-03 19:45:13 -05:00
parent 87a9ecf426
commit 9ecd87595b
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 5 additions and 2 deletions

View File

@ -360,8 +360,11 @@ class Core:
payload = 'SELECT * FROM peers;'
peerList = []
for i in c.execute(payload):
if type(i[2]) != None:
peerList.append(i[2])
try:
if len(i[2]) != 0:
peerList.append(i[2])
except TypeError:
pass
peerList.append(self._crypto.pubKey)
conn.close()
return peerList