work on pm and fixed broken pex when none
This commit is contained in:
		
							parent
							
								
									87a9ecf426
								
							
						
					
					
						commit
						9ecd87595b
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -360,8 +360,11 @@ class Core: | ||||||
|             payload = 'SELECT * FROM peers;' |             payload = 'SELECT * FROM peers;' | ||||||
|         peerList = [] |         peerList = [] | ||||||
|         for i in c.execute(payload): |         for i in c.execute(payload): | ||||||
|             if type(i[2]) != None: |             try: | ||||||
|                 peerList.append(i[2]) |                 if len(i[2]) != 0: | ||||||
|  |                     peerList.append(i[2]) | ||||||
|  |             except TypeError: | ||||||
|  |                 pass | ||||||
|         peerList.append(self._crypto.pubKey) |         peerList.append(self._crypto.pubKey) | ||||||
|         conn.close() |         conn.close() | ||||||
|         return peerList |         return peerList | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue