[Reportbug-maint] Bug#726878: Catch SOAP errors and handle them correctly

Shawn Landden shawn at churchofgit.com
Wed Dec 4 20:13:20 UTC 2013


Package: reportbug
Version: 6.4.4
Followup-For: Bug #726878

e.g. if you are at a wifi hostspot with a captive portal this isn't very useful
to know what is going on:

Querying Debian BTS for reports on fprintd (source)...
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2206, in <module>
    main()
  File "/usr/bin/reportbug", line 1080, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1702, in user_interface
    latest_first=self.options.latest_first)
  File "/usr/lib/pymodules/python2.7/reportbug/ui/text_ui.py", line 517, in handle_bts_query
    source=source, http_proxy=http_proxy, archived=archived)
  File "/usr/lib/pymodules/python2.7/reportbug/debbugs.py", line 1258, in get_reports
    bugs = debianbts.get_bugs(pkg_filter, package)
  File "/usr/lib/pymodules/python2.7/debianbts.py", line 230, in get_bugs
    reply = server.get_bugs(*key_value)
  File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 470, in __call__
    return self.__r_call(*args, **kw)
  File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 492, in __r_call
    self.__hd, self.__ma)
  File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 363, in __call
    config = self.config)
  File "/usr/lib/pymodules/python2.7/SOAPpy/Client.py", line 225, in call
    data = r.getfile().read()
AttributeError: 'NoneType' object has no attribute 'read'


-- Package-specific info:
** Environment settings:
DEBEMAIL="shawn at churchofgit.com"
INTERFACE="text"

** /home/shawn/.reportbugrc:
reportbug_version "6.4.4"
mode advanced
ui text
no-cc
header "X-Debbugs-CC: shawn at churchofgit.com"
smtphost reportbug.debian.org

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
armhf

Kernel: Linux 3.13.0-rc2-00123-g70839b6 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt               0.9.13.1
ii  python            2.7.5-5
ii  python-reportbug  6.4.4

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                               <none>
pn  debconf-utils                            <none>
pn  debsums                                  <none>
pn  dlocate                                  <none>
pn  emacs22-bin-common | emacs23-bin-common  <none>
ii  file                                     1:5.14-2
ii  gnupg                                    1.4.15-1.1
ii  python-gtk2                              2.24.0-3+b1
pn  python-gtkspell                          <none>
pn  python-urwid                             <none>
ii  python-vte                               1:0.28.2-5
ii  ssmtp [mail-transport-agent]             2.64-8
ii  xdg-utils                                1.1.0~rc1+git20111210-7

Versions of packages python-reportbug depends on:
ii  apt               0.9.13.1
ii  python            2.7.5-5
ii  python-debian     0.1.21+nmu2
ii  python-debianbts  1.11
ii  python-support    1.0.15

python-reportbug suggests no packages.

-- no debconf information



More information about the Reportbug-maint mailing list