mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Fix regression that broke error reporting for save to disk for books that contain no formats. Fixes #1405674 [Save to disk, ValueError too many values to unpack](https://bugs.launchpad.net/calibre/+bug/1405674)
This commit is contained in:
		
							parent
							
								
									9106c49b49
								
							
						
					
					
						commit
						eedd0a6dfb
					
				@ -206,7 +206,7 @@ class Saver(QObject):
 | 
			
		||||
            asked_formats = {x.lower().strip() for x in self.opts.formats.split(',')}
 | 
			
		||||
            fmts = asked_formats.intersection(fmts)
 | 
			
		||||
            if not fmts:
 | 
			
		||||
                self.errors[book_id] = ('critical', _('Requested formats not available'))
 | 
			
		||||
                self.errors[book_id].append(('critical', _('Requested formats not available')))
 | 
			
		||||
                return
 | 
			
		||||
 | 
			
		||||
        if not fmts and not self.opts.write_opf and not self.opts.save_cover:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user