14
0
Files
python-bugzilla/188-fix-api-key-leak.diff
Matej Cepl 85d3e3160a - Switch to Git source and update to version 3.2.0+git.1726768917.5eedea3:
* Use non-deprecated argument name in test-suite
  * Fixed issue in `Bugzilla.fix_url`
  * Prep for release 3.3.0
  * ci: bump actions/checkout from 3 to 4
  * ci: bump actions/setup-python from 4 to 5
  * Run functional RO tests in GitHub actions
  * man: Regenerate bugzilla.1
  * man: Add section about `bugzillarc`
  * Allow bug creation with an explicitly empty list of groups (closes #210)
  * cli: Support `--field` and `--field-json` for `bugzilla attach` (#206)
- Remove upstreamed patch 188-fix-api-key-leak.diff

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=61
2024-09-20 20:16:41 +00:00

24 lines
954 B
Diff

--- a/bugzilla/_session.py 2021-10-05 22:49:16.000000000 +0200
+++ b/bugzilla/_session.py 2023-09-25 17:22:39.763856790 +0200
@@ -97,14 +97,14 @@
if "timeout" not in kwargs:
kwargs["timeout"] = timeout
- response = self._session.request(*args, **kwargs)
+ try:
+ response = self._session.request(*args, **kwargs)
- if self._is_xmlrpc:
- # Yes this still appears to matter for properly decoding unicode
- # code points in bugzilla.redhat.com content
- response.encoding = "UTF-8"
+ if self._is_xmlrpc:
+ # Yes this still appears to matter for properly decoding unicode
+ # code points in bugzilla.redhat.com content
+ response.encoding = "UTF-8"
- try:
response.raise_for_status()
except Exception as e:
# Scrape the api key out of the returned exception string