Bug 1301537 - RuntimeError: dictionary changed size during iteration
RuntimeError: dictionary changed size during iteration
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: python-fedora (Show other bugs)
23
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Fedora Infrastructure SIG
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-25 05:30 EST by Miroslav Suchý
Modified: 2016-03-28 21:33 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-03-28 21:33:07 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Miroslav Suchý 2016-01-25 05:30:49 EST
Description of problem:
When I call client.group_members("packager") it results in traceback (see below)

Version-Release number of selected component (if applicable):
python3-fedora-0.7.1-1.fc23.noarch

How reproducible:
deterministc

Steps to Reproduce:
#!/usr/bin/python3
from fedora.client import AuthError, AccountSystem
client = AccountSystem()
#client.username = "msuchy"
#client.password = "XXXX"
packagers = client.group_members("packager")

Actual results:
$ ./guard-fedora-sponsors.py
Traceback (most recent call last):
  File "./guard-fedora-sponsors.py", line 97, in <module>
    packagers = client.group_members("packager")
  File "/usr/lib/python3.4/site-packages/fedora/client/fas2.py", line 395, in group_members
    quote(groupname), auth=True)
  File "/usr/lib/python3.4/site-packages/fedora/client/baseclient.py", line 362, in send_request
    for key, value in auth_params.items() if not value]
  File "/usr/lib/python3.4/site-packages/fedora/client/baseclient.py", line 361, in <listcomp>
    [auth_params.__delitem__(key)
RuntimeError: dictionary changed size during iteration
Comment 1 Ralph Bean 2016-01-25 10:37:14 EST
Should be fixed upstream here:  https://github.com/fedora-infra/python-fedora/pull/177/files

Note You need to log in before you can comment on or make changes to this bug.