Package: reportbug
Version: 3.29.1
Severity: normal

When entering an invalid package name into reportbug, it fails with a
traceback. It might be better to print an appropriate error message and
then let the user specify a valid package name on reportbug's command
line.

[EMAIL PROTECTED]:~/src/debian $ reportbug
Please enter the name of the package in which you have found a problem, or type 
'other' to report a more general problem.
> nonexistentpackage
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: ISO-8859-1
Please change your locale if this is incorrect.

Using 'Tobias Klauser <[EMAIL PROTECTED]>' as your from address.
Getting status for nonexistentpackage...
No matching source or binary packages.
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 1716, in ?
    main()
  File "/usr/bin/reportbug", line 751, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1111, in user_interface
    maintainer = maintainer.encode(charset, 'replace')
AttributeError: 'NoneType' object has no attribute 'encode'
[EMAIL PROTECTED]:~/src/debian $

[EMAIL PROTECTED]:~ $ reportbug nonexistentpackage
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: ISO-8859-1
Please change your locale if this is incorrect.

Using 'Tobias Klauser <[EMAIL PROTECTED]>' as your from address.
Getting status for nonexistentpackage...
No matching source or binary packages.
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 1716, in ?
    main()
  File "/usr/bin/reportbug", line 751, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1111, in user_interface
    maintainer = maintainer.encode(charset, 'replace')
AttributeError: 'NoneType' object has no attribute 'encode'
[EMAIL PROTECTED]:~ $


-- Package-specific info:
** Environment settings:
EDITOR="/usr/bin/vim"
EMAIL="[EMAIL PROTECTED]"
INTERFACE="text"

** /home/tklauser/.reportbugrc:
reportbug_version "3.20"
mode advanced
ui text
email "[EMAIL PROTECTED]"
no-cc
header "X-Debbugs-CC: [EMAIL PROTECTED]"
mutt

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-xenon
Locale: LANG=en_GB, LC_CTYPE=de_CH (charmap=ISO-8859-1) (ignored: LC_ALL set to 
en_GB)

Versions of packages reportbug depends on:
ii  python                        2.4.3-11   An interactive high-level object-o
ii  python-central                0.5.5      register and build utility for Pyt

Versions of packages reportbug recommends:
pn  python-cjkcodecs | python-ico <none>     (no description available)

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to