From: Hans-Christoph Steiner Date: Wed, 6 Dec 2017 21:42:11 +0000 (+0100) Subject: nightly: fix QR icon.png generation X-Git-Tag: 1.0.0~37^2~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c823d4c4a8e7ab6adcca5d5620e4fc6b6061eb59;p=fdroidserver.git nightly: fix QR icon.png generation --- 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)