8225 8311: Crash on geneweb export with python3

This commit is contained in:
Fabrice Arbogast 2015-04-30 17:23:58 +02:00 committed by Ross Gammon
parent dbc68eef53
commit 42df438ea0

View File

@ -90,7 +90,7 @@ class GeneWebWriter(object):
self.dirname = os.path.dirname (self.filename) self.dirname = os.path.dirname (self.filename)
try: try:
self.g = open(self.filename, "w") self.g = open(self.filename, "wb")
except IOError as msg: except IOError as msg:
msg2 = _("Could not create %s") % self.filename msg2 = _("Could not create %s") % self.filename
self.user.notify_error(msg2, str(msg)) self.user.notify_error(msg2, str(msg))