mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
nightly: fix QR icon.png generation
This commit is contained in:
parent
5d54446efc
commit
c823d4c4a8
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue