mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Fix AttributeError: class Image has no attribute 'DEBUG'
This commit is contained in:
		
							parent
							
								
									68c502db8b
								
							
						
					
					
						commit
						a5ae40c1b4
					
				| 
						 | 
					@ -539,7 +539,7 @@ class Image:
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            self.fp.close()
 | 
					            self.fp.close()
 | 
				
			||||||
        except Exception as msg:
 | 
					        except Exception as msg:
 | 
				
			||||||
            if Image.DEBUG:
 | 
					            if DEBUG:
 | 
				
			||||||
                print ("Error closing: %s" % msg)
 | 
					                print ("Error closing: %s" % msg)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Instead of simply setting to None, we're setting up a
 | 
					        # Instead of simply setting to None, we're setting up a
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user