Skip to content

Commit

Permalink
fix: qrcode: make sure that imported qrcode package with QRCode
Browse files Browse the repository at this point in the history
There are other packages with the same name...
  • Loading branch information
KarolBedkowski committed Nov 26, 2023
1 parent 0cfc051 commit e099576
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kupfer/plugin/show_qrcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@
import io
import tempfile
from contextlib import closing
import typing as ty
from gettext import gettext as _

import qrcode

from gi.repository import GdkPixbuf, Gtk

from kupfer import plugin_support
from kupfer.obj import Action, FileLeaf, Leaf, TextLeaf
from kupfer.ui import uiutils

if ty.TYPE_CHECKING:
from gettext import gettext as _

if not hasattr(qrcode, "QRCode"):
raise ImportError("missing (right) qrcode package")


__kupfer_settings__ = plugin_support.PluginSettings(
{
Expand Down

0 comments on commit e099576

Please sign in to comment.