From 70a703a98b963a872ec62fcea549a485f21f1f50 Mon Sep 17 00:00:00 2001 From: Saptak S Date: Fri, 21 Apr 2023 02:19:14 +0530 Subject: Fixes qrcode image_factory --- .github/workflows/build.yml | 8 +------- desktop/onionshare/widgets.py | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7caadfda..0e26bb58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,13 +17,7 @@ jobs: - name: Install python uses: actions/setup-python@v4 with: - python-version: '3.10' - - - name: Check python path - run: which python - - - name: Check python path - run: python --version + python-version: '3.10.11' - name: Install poetry run: C:\hostedtoolcache\windows\Python\3.10.11\x64\python -m pip install poetry diff --git a/desktop/onionshare/widgets.py b/desktop/onionshare/widgets.py index b9b69e72..2eacc771 100644 --- a/desktop/onionshare/widgets.py +++ b/desktop/onionshare/widgets.py @@ -101,7 +101,7 @@ class Image(qrcode.image.base.BaseImage): A custom Image class, for use with the QR Code pixmap. """ - def __init__(self, border, width, box_size): + def __init__(self, border, width, box_size, *args, **kwargs): self.border = border self.width = width self.box_size = box_size -- cgit v1.2.3-54-g00ecf