votes up 1

Invalid box size (was (size), expected larger than 0)

Package:
Exception Class:
ValueError

Raise code

 QRCode(**kwargs)
    qr.add_data(data)
    return qr.make_image()


def _check_box_size(size):
    if int(size) <= 0:
        raise ValueError(
            f"Invalid box size (was {size}, expected larger than 0)")

def _check_border(size):
    if int(size) < 0:
        raise ValueError("Invalid border value (was %s, expected 0 or larger than that)" % size)


def _che

Ways to fix

votes up 0 votes down
https://fixexception.com/qrcode/invalid-box-size-was-size-expected-larger-than-0/
  • 
Nov 16, 2021 sidathgueye answer

Add a possible fix

Please authorize to post fix