[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 6.0-121-g391a392

Sandro Tosi morph at debian.org
Sat Aug 18 20:50:26 UTC 2012


The following commit has been merged in the master branch:
commit c895dab4d246deef28df20cb8b15995cd47dfa05
Author: Sandro Tosi <morph at debian.org>
Date:   Sat Aug 18 18:29:26 2012 +0200

    fix a crash when selecting 'Quit' in the Urwid UI window presenting the list of bugs already filed; thanks to Ryan Kavanagh for the report; Closes: #668395

diff --git a/debian/changelog b/debian/changelog
index 197e562..c92b4a8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,8 +7,12 @@ reportbug (6.4.3) UNRELEASED; urgency=low
   * reportbug/utils.py
     - recognize Control as a pseudo-header; thanks to Paul Wise for the report;
       Closes: #684540
+  * reportbug/ui/urwid_ui.py
+    - fix a crash when selecting 'Quit' in the Urwid UI window presenting the
+      list of bugs already filed; thanks to Ryan Kavanagh for the report;
+      Closes: #668395
 
- -- Sandro Tosi <morph at debian.org>  Sat, 18 Aug 2012 16:03:33 +0200
+ -- Sandro Tosi <morph at debian.org>  Sat, 18 Aug 2012 18:28:22 +0200
 
 reportbug (6.4.2) unstable; urgency=low
 
diff --git a/reportbug/ui/urwid_ui.py b/reportbug/ui/urwid_ui.py
index 4c33a7f..e85f8ae 100644
--- a/reportbug/ui/urwid_ui.py
+++ b/reportbug/ui/urwid_ui.py
@@ -609,6 +609,9 @@ def handle_bts_query(package, bts, timeout, mirrors=None, http_proxy="",
                 if info < 0:
                     if info == -1:
                         result = None
+                    # -2 is the Quit response, triggers the exiting way in main
+                    elif info == -2:
+                        raise NoReport
                     else:
                         # uniform to return Bugreport instance
                         result = debbugs.get_report(info, timeout)[0]

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list