Comment 6 for bug 1810167

Revision history for this message
Ramiro Algozino (algozino) wrote : Re: [Bug 1810167] Re: qrtools don't decode a router wifi code

Hi!

Yes, the regex fix looks ok. The H (used for hidden networks) field is
optional.

Please be aware that the official repo is here on launchpad. If you found
something on GitHub is not official.

Thanks!

On Wed, Dec 23, 2020, 13:30 Pokulo <email address hidden> wrote:

> Changing "[H:]+(.*)" to "[H:]*(.*)" helped in my case, Will create a
> pull request on GitHub :)
>
> --
> You received this bug notification because you are a member of QR Tools
> Team, which is subscribed to QR Tools.
> https://bugs.launchpad.net/bugs/1810167
>
> Title:
> qrtools don't decode a router wifi code
>
> Status in QR Tools:
> Expired
>
> Bug description:
> I have a wifi password from android mobile on qrcode.
> I use qtqr version: 1.4~bzr21-1 in Debian 9.6
> When i try to decode by webcam, I see this error:
>
> $ qtqr
> wifi:
> Traceback (most recent call last):
> File "/usr/bin/qtqr", line 541, in decodeFile
> self.showInfo(qr)
> File "/usr/bin/qtqr", line 561, in showInfo
> data = qr.data_decode[dt](qr.data)
> File "/usr/lib/python2.7/dist-packages/qrtools.py", line 99, in
> <lambda>
> 'wifi' : lambda data: re.findall(u"WIFI:S:(.*);T:(.*);P:(.*);;",
> data, re.IGNORECASE)[0],
> IndexError: list index out of range
>
> Why ?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qr-tools/+bug/1810167/+subscriptions
>