urlinfo: catch TooManyRedirects exceptions
This commit is contained in:
		@@ -39,7 +39,7 @@ class URLInfo(Plugin):
 | 
				
			|||||||
                    if size >= self.SIZE_LIMIT:
 | 
					                    if size >= self.SIZE_LIMIT:
 | 
				
			||||||
                        return
 | 
					                        return
 | 
				
			||||||
                    bytes_io.write(chunk)
 | 
					                    bytes_io.write(chunk)
 | 
				
			||||||
        except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError, requests.exceptions.ReadTimeout):
 | 
					        except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError, requests.exceptions.ReadTimeout, requests.exceptions.TooManyRedirects):
 | 
				
			||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        bytes_io.seek(0)
 | 
					        bytes_io.seek(0)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user