8225 8311: Crash on geneweb export with python3
This commit is contained in:
		
				
					committed by
					
						
						Ross Gammon
					
				
			
			
				
	
			
			
			
						parent
						
							dbc68eef53
						
					
				
				
					commit
					42df438ea0
				
			@@ -90,7 +90,7 @@ class GeneWebWriter(object):
 | 
			
		||||
 | 
			
		||||
        self.dirname = os.path.dirname (self.filename)
 | 
			
		||||
        try:
 | 
			
		||||
            self.g = open(self.filename, "w")
 | 
			
		||||
            self.g = open(self.filename, "wb")
 | 
			
		||||
        except IOError as msg:
 | 
			
		||||
            msg2 = _("Could not create %s") % self.filename
 | 
			
		||||
            self.user.notify_error(msg2, str(msg))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user