mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-11-04 02:01:03 +01:00 
			
		
		
		
	Throw exception when not retrying when downloading media
This commit is contained in:
		
							parent
							
								
									a837765e8c
								
							
						
					
					
						commit
						48d2949416
					
				@ -184,6 +184,7 @@ class MediaRepository(object):
 | 
			
		||||
                    raise
 | 
			
		||||
                except NotRetryingDestination:
 | 
			
		||||
                    logger.warn("Not retrying destination %r", server_name)
 | 
			
		||||
                    raise SynapseError(502, "Failed to fetch remote media")
 | 
			
		||||
                except Exception:
 | 
			
		||||
                    logger.exception("Failed to fetch remote media %s/%s",
 | 
			
		||||
                                     server_name, media_id)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user