Bug#926108: opgpcard: errors with command-line arguments

2019-04-04 Thread ju xor
Hi,

John Scott:
> Package: opgpcard
> Version: 0.1.4-1
> Severity: normal
> 
> $ opgpcard -f First
> Traceback (most recent call last):
>   File "/usr/bin/opgpcard", line 11, in 
> load_entry_point('opgpcard==0.1.4', 'console_scripts', 'opgpcard')()
>   File "/usr/lib/python3/dist-packages/opgpcard/cli.py", line 69, in main
> gen_opgpcard(args)
>   File "/usr/lib/python3/dist-packages/opgpcard/opgpcard.py", line 124, in 
> gen_opgpcard
> (args.firstname + args.lastname,))
> TypeError: can only concatenate str (not "NoneType") to str
> 
> Similar errors are given for using some combination of
> command-line options, but -m works with correct email
> addresses.
[...]

Thanks for reporting this bug, will be fixed soon.

juxor.



signature.asc
Description: OpenPGP digital signature


Bug#926108: opgpcard: errors with command-line arguments

2019-03-31 Thread John Scott
Package: opgpcard
Version: 0.1.4-1
Severity: normal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

$ opgpcard -f First
Traceback (most recent call last):
  File "/usr/bin/opgpcard", line 11, in 
load_entry_point('opgpcard==0.1.4', 'console_scripts', 'opgpcard')()
  File "/usr/lib/python3/dist-packages/opgpcard/cli.py", line 69, in main
gen_opgpcard(args)
  File "/usr/lib/python3/dist-packages/opgpcard/opgpcard.py", line 124, in 
gen_opgpcard
(args.firstname + args.lastname,))
TypeError: can only concatenate str (not "NoneType") to str

Similar errors are given for using some combination of
command-line options, but -m works with correct email
addresses.

$ opgpcard -m test
Mar 31 10:51:45 opgpcard.gpg_utils gpg_utils[20221]: INFO - Found key with 
email test in your keyring.
Mar 31 10:51:45 opgpcard.gpg_utils gpg_utils[20221]: INFO - It is not a good 
idea to have the keyring in the same computer as this program.
Traceback (most recent call last):
  File "/usr/bin/opgpcard", line 11, in 
load_entry_point('opgpcard==0.1.4', 'console_scripts', 'opgpcard')()
  File "/usr/lib/python3/dist-packages/opgpcard/cli.py", line 69, in main
gen_opgpcard(args)
  File "/usr/lib/python3/dist-packages/opgpcard/opgpcard.py", line 104, in 
gen_opgpcard
a = gpg_utils.obtain_key_attrs_from_email(args.mail)
  File "/usr/lib/python3/dist-packages/opgpcard/gpg_utils.py", line 70, in 
obtain_key_attrs_from_email
key = obtain_key_from_email(email)
  File "/usr/lib/python3/dist-packages/opgpcard/gpg_utils.py", line 65, in 
obtain_key_from_email
key = keys[0]
IndexError: list index out of range

- -- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-4-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US 
(charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages opgpcard depends on:
ii  libjs-sphinxdoc  1.8.4-1
ii  python3  3.7.2-1
ii  python3-gpg  1.12.0-6
ii  python3-lxml 4.3.2-1
ii  python3-qrcode   6.1-1

opgpcard recommends no packages.

opgpcard suggests no packages.

- -- no debconf information

-BEGIN PGP SIGNATURE-

iQEzBAEBCgAdFiEEAXEkn09uX7g8Tv8W3qerYfa4vJcFAlyg1LYACgkQ3qerYfa4
vJdIJwgAgz9yFcMJsZvkhQ3HA2SxmqLP+V9dy2OlTfNKlLRUVXWEYlqxE+QDJF7c
fD+2i3dAtTwLqWJX5CTf6Ae7oLnzOx5yvnDuFO2nycDEQKTm7plNhAmOKrAH4yqh
hBxphXYGksKodXwULtZFZx5id+mWCWcwPY+/oK4IswZo8os4TE6vH4q7obZveLpn
Ij73Y3M42BTQJq2y8sgfNrL0ss6YnVjKufPrW/PtZjUomWN2gOSwuWBbDg/tbJ2D
FxCE1cIqW8V3ffIHoO/JAoMji+V7vy3WXvpQD4zwWcuTvekVbyrTnNDmGFxr8/B3
l1OtAb3VbNV7bzlX5d6vknbUGD3EzA==
=8hSF
-END PGP SIGNATURE-