From c823d4c4a8e7ab6adcca5d5620e4fc6b6061eb59 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 6 Dec 2017 22:42:11 +0100 Subject: [PATCH] nightly: fix QR icon.png generation --- fdroidserver/nightly.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fdroidserver/nightly.py b/fdroidserver/nightly.py index 75c05645..37d3e8be 100644 --- a/fdroidserver/nightly.py +++ b/fdroidserver/nightly.py @@ -192,9 +192,7 @@ Last updated: {date}'''.format(repo_git_base=repo_git_base, icon_path = os.path.join(git_mirror_path, 'icon.png') try: import qrcode - img = qrcode.make(repo_url) - with open(icon_path, 'wb') as fp: - fp.write(img) + qrcode.make(repo_url).save(icon_path) except Exception: exampleicon = os.path.join(common.get_examples_dir(), 'fdroid-icon.png') shutil.copy(exampleicon, icon_path) -- 2.30.2