don't crash when cacerts.pem file doesn't exists
This commit is contained in:
		
							parent
							
								
									f6025f37cc
								
							
						
					
					
						commit
						6aca316b7e
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -1168,6 +1168,8 @@ class Connection(CommonConnection, ConnectionHandlers): | ||||||
|                 port = self._current_host['port'] |                 port = self._current_host['port'] | ||||||
| 
 | 
 | ||||||
|             cacerts = os.path.join(common.gajim.DATA_DIR, 'other', 'cacerts.pem') |             cacerts = os.path.join(common.gajim.DATA_DIR, 'other', 'cacerts.pem') | ||||||
|  |             if not os.path.exists(cacerts): | ||||||
|  |                 cacerts = '' | ||||||
|             mycerts = common.gajim.MY_CACERTS |             mycerts = common.gajim.MY_CACERTS | ||||||
|             secure_tuple = (self._current_type, cacerts, mycerts) |             secure_tuple = (self._current_type, cacerts, mycerts) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue