mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-10-31 08:11:24 +01:00 
			
		
		
		
	List caught expection types
This commit is contained in:
		
							parent
							
								
									5fd12dce01
								
							
						
					
					
						commit
						c0380402bc
					
				| @ -260,7 +260,7 @@ class SimpleHttpClient(object): | |||||||
|             errcode = jsonBody['errcode'] |             errcode = jsonBody['errcode'] | ||||||
|             error = jsonBody['error'] |             error = jsonBody['error'] | ||||||
|             return MatrixCodeMessageException(response.code, error, errcode) |             return MatrixCodeMessageException(response.code, error, errcode) | ||||||
|         except: |         except (ValueError, KeyError) as e: | ||||||
|             return CodeMessageException(response.code, body) |             return CodeMessageException(response.code, body) | ||||||
| 
 | 
 | ||||||
|     # XXX: FIXME: This is horribly copy-pasted from matrixfederationclient. |     # XXX: FIXME: This is horribly copy-pasted from matrixfederationclient. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user