Skip to content

Commit bffbf78

Browse files
committed
The logic for displaying warning and updating config when a user supplied configuration using the old ExchangeFetch class has a couple of errors in it.
These errors mean that the ExchangeFetchAssignment ignores all configuration passed to it, if there's configurations for the ExchangeFetch class in the config file. (The ExchangeReleaseAssignment is correct as it is.)
1 parent 4c5d6f6 commit bffbf78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nbgrader/exchange/fetch_assignment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ def _load_config(self, cfg, **kwargs):
1717
"Use ExchangeFetchAssignment in config, not ExchangeFetch. Outdated config:\n%s",
1818
'\n'.join(
1919
'ExchangeFetch.{key} = {value!r}'.format(key=key, value=value)
20-
for key, value in cfg.ExchangeFetchAssignment.items()
20+
for key, value in cfg.ExchangeFetch.items()
2121
)
2222
)
2323
cfg.ExchangeFetchAssignment.merge(cfg.ExchangeFetch)
24-
del cfg.ExchangeFetchAssignment
24+
del cfg.ExchangeFetch
2525

2626
super(ExchangeFetchAssignment, self)._load_config(cfg, **kwargs)
2727

0 commit comments

Comments
 (0)