#1064790 reportbug: regression when max reports per hour reached

#1064790#5
Date:
2024-02-25 22:06:28 UTC
From:
To:
Dear Maintainer,

reportbug crashes when maximum number of reports per hour is reached. This is a regression from previous version where reportbug instead offered to try again instead of crashing. Traceback attached.

Connecting to reportbug.debian.org via SMTP...
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 484, in send_report
    refused = conn.sendmail(fromaddr, toaddrs, message)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/smtplib.py", line 901, in sendmail
    raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'submit@bugs.debian.org': (451, b'sorry, only 5 reports per hour for submission')}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2386, in <module>
    main()
  File "/usr/bin/reportbug", line 1094, in main
    return iface.user_interface()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/reportbug", line 2369, in user_interface
    submit.send_report(
  File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 499, in send_report
    if ui.yes_no(f'SMTP send failure: {x}. You can retry, or save the report and exit. Do you want to retry?',
                                       ^
UnboundLocalError: cannot access local variable 'x' where it is not associated with a value

#1064790#8
Date:
2024-02-27 10:46:15 UTC
From:
To:
Hello,

Bug #1064790 in reportbug reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/reportbug-team/reportbug/-/commit/6abbb3ade2cacfc914f9eef00d107576a2c1b1af
------------------------------------------------------------------------
reportbug/submit.py: fix crash resulting from submission failure

When renaming a variable in 7ea74b57a40ba2575a0ed2f3bdd176c3ab06208d,
one line was missed where the old name was still used.

Closes: #1064790
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1064790

#1064790#15
Date:
2024-02-27 11:09:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
reportbug, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1064790@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nis Martensen <nis.martensen@web.de> (supplier of updated reportbug package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 27 Feb 2024 11:42:00 +0100
Source: reportbug
Architecture: source
Version: 13.0.1
Distribution: unstable
Urgency: medium
Maintainer: Reportbug Maintainers <debian-reportbug@lists.debian.org>
Changed-By: Nis Martensen <nis.martensen@web.de>
Closes: 1064790
Changes:
 reportbug (13.0.1) unstable; urgency=medium
 .
   * reportbug/submit.py: fix crash resulting from submission failure
     (Closes: #1064790)
Checksums-Sha1:
 71262442913a68a872a6e3955f64e7e0c3f3351f 1888 reportbug_13.0.1.dsc
 b74f09bb17516661d8ca827b4b6377649d3d68bc 214068 reportbug_13.0.1.tar.xz
 5801d1ecf421f09bc056afb28b32a8d658802208 8157 reportbug_13.0.1_amd64.buildinfo
Checksums-Sha256:
 403de6fd26d523019e75321220cff56a063fd444ecfed20c3c61765f9278568b 1888 reportbug_13.0.1.dsc
 973f60e821447735cd4b3b4e4ef19736cd743ee13156d96b4f9499098f3cd491 214068 reportbug_13.0.1.tar.xz
 18457fabce795012af5c12f6c025736f082c7012603b5d3cca3dd9e9775ad7a1 8157 reportbug_13.0.1_amd64.buildinfo
Files:
 09e4bfcff0664ba3edd2779d76b947c4 1888 utils standard reportbug_13.0.1.dsc
 8296e47fd711b50de81e0d6312987a34 214068 utils standard reportbug_13.0.1.tar.xz
 dca6ef6209759deb7b19e0807df98160 8157 utils standard reportbug_13.0.1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEElwagcOR0bw2C8YAgINUE/crqn1AFAmXdvT0ACgkQINUE/crq
n1BOoQ/8DTrPQgx3Ll9GoQTqdA6zGAoReXq9gTt2XtISpt2ESapvbwswxJD5p7IE
eAaUDaHEZEWVxcfQEGu24lz65G0bHXjQVWME34Wr29WdTriXYRafqneiqBmUoNGQ
EzR9Dh5lQjeExFaO6fH1iIMB+ijE+HueZCrzolaFG6o2J1AZsMkl3xx3A986fFqH
/d0MPBlInzmC2chM9qs2rUB10sV6dD41dGolEtYafd+q21L2q3LnghzPuJXrPvBb
ZgdDNO9ZSqT2UgFVo2Ht8NvBO0YiXxFbZOjPCt2jELOg2RPzggAO15e0YDzX9uK7
tmhNO4MTtpOQ/EFn0VJ5ftkLhG66PvH/U876PnJHW0PXlolPD1oEZ8OZzXmoS84V
0dJLlQLeedy5zzFaJH6TwqcT7y+h3xJv0wE8n6rsO0LvD1xdzDQWXzy/aRBsGQW+
6/BWeLE6VRukMLY92avjfUUweYDt0dcoJxr0zYH4CwHbuVuotAr/sHp8a9M8wHrj
IatlOh329v4BXggkoVCU7OSTeKt0jcgTfwr7AvRpCiIAs5/Yypykwy/QjxIe3OsJ
GrPZMHpKtdVgThtDPdnGJvo7tsbBjXkyZKzbG2slK56CmVTNXJYGl6PWkq56KQl4
ttSWwLngI9R0b4mEgWHlY0X5qtbjE+AOrgMwPn+bF+wyFVETfzs=
=2rqd
-----END PGP SIGNATURE-----