Bug 1301537 - RuntimeError: dictionary changed size during iteration
Summary: RuntimeError: dictionary changed size during iteration
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fedora
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Infrastructure SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-25 10:30 UTC by Miroslav Suchý
Modified: 2016-03-29 01:33 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-29 01:33:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2016-01-25 10:30:49 UTC
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 15:37:14 UTC
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.