diff --git a/weboob/applications/boobill/boobill.py b/weboob/applications/boobill/boobill.py index f3d4a828..ad579ae7 100644 --- a/weboob/applications/boobill/boobill.py +++ b/weboob/applications/boobill/boobill.py @@ -206,7 +206,7 @@ class Boobill(ReplApplication): print(buf) else: try: - with open(dest, 'w') as f: + with open(dest, 'wb') as f: f.write(buf) except IOError as e: print('Unable to write bill in "%s": %s' % (dest, e), file=self.stderr) @@ -223,7 +223,7 @@ class Boobill(ReplApplication): print(buf) else: try: - with open(dest, 'w') as f: + with open(dest, 'wb') as f: f.write(buf) except IOError as e: print('Unable to write bill in "%s": %s' % (dest, e), file=self.stderr)