-
Notifications
You must be signed in to change notification settings - Fork 727
Closed
Description
Background
I had the follow snippet in my project
from qrcode import QRCode
from qrcode import constants
from qrcode.image.styledpil import StyledPilImage
qr_code = QRCode(error_correction=constants.ERROR_CORRECT_H)
img_3 = qr_code.make_image(
image_factory=StyledPilImage, embeded_image_path=embedded_image
)Furthermore, I use the typos to find and fix typos in my Projects.
Problem
typos changed embeded_image_path to embedded_image_path.
The qrcode generation did NOT fail, but produced an QR with no embedded image.
The problem is that StyledPilImage is looking for embeded_image_path, i.e., there is a typo in the keyword parameter.
Potential Solution(s)
- Fix the typo in
StyledPilImage, i.e., here - Show a warning when someone is passing
embedded_image_pathas keyword parameter toStyledPilImage - Throw an exception if someone is passing
embedded_image_pathas keyword parameter
WDYT?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels