mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 11:54:50 +00:00 
			
		
		
		
	Fix filesize.decimal call in requests downloader size exception
This commit is contained in:
		
							parent
							
								
									dd64212ad2
								
							
						
					
					
						commit
						55a86ac6c9
					
				@ -79,7 +79,7 @@ def requests(
 | 
				
			|||||||
                        download_sizes.clear()
 | 
					                        download_sizes.clear()
 | 
				
			||||||
        if file_size and written < int(file_size):
 | 
					        if file_size and written < int(file_size):
 | 
				
			||||||
            raise ValueError(
 | 
					            raise ValueError(
 | 
				
			||||||
                f"{url} finished downloading unexpectedly, got {decimal(written)}/{decimal(file_size)}")
 | 
					                f"{url} finished downloading unexpectedly, got {decimal(written)}/{decimal(int(file_size))}")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return 0
 | 
					    return 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user