Skip to content

Commit

Permalink
Do not add "qrcode_modules" attribute in svg image
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-raca committed Nov 8, 2022
1 parent 7eb16ae commit ef77bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qrcode/image/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def __init__(self, border, width, box_size, *args, **kwargs):
self.width = width
self.box_size = box_size
self.pixel_size = (self.width + self.border * 2) * self.box_size
self.modules = kwargs.pop("qrcode_modules")
self._img = self.new_image(**kwargs)
self.modules = kwargs["qrcode_modules"]
self.init_new_image()

@abc.abstractmethod
Expand Down

0 comments on commit ef77bc5

Please sign in to comment.