git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-multimail: migration: Config is not iterable

From
AKAzat Khuzhin <a3at.mail@gmail.com>
Date
May 31, 2014, 15:21 UTC
Message-ID
<20140531151931.GJ27473@azat>
In-Reply-To
<5389EE61.9060108@alum.mit.edu>
On Sat, May 31, 2014 at 04:59:45PM +0200, Michael Haggerty wrote:
Show 25 quoted lines
> On 05/29/2014 04:22 PM, Azat Khuzhin wrote:
> > Using the latest version of git-multimail there is an issue with
> > migration:
> > 
> > $ ~azat/git-multimail/git-multimail/migrate-mailhook-config --overwrite
> > Traceback (most recent call last):
> >   File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 271, in <module>
> >     main(sys.argv[1:])
> >   File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 268, in main
> >     migrate_config(strict=options.strict, retain=options.retain, overwrite=options.overwrite)
> >   File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 159, in migrate_config
> >     if not _check_old_config_exists(old):
> >   File "/home/azat/git-multimail/git-multimail/migrate-mailhook-config", line 66, in _check_old_config_exists
> >     if name in old:
> > TypeError: argument of type 'Config' is not iterable
> > 
> > Tested on 2.6 and 2.7 python versions.
> > 
> > If you revert 09d0d5b92203f019763e43cef1e57f76f117d2b4 ("Get Python files to
> > pass pep8's tests.") there issue goes away. I understand that this is not the
> > right solution and I'm not the guru of python, so just let you know.
> 
> Thanks for the bug report and for narrowing it down to the broken
> commit.  I just pushed a fix to GitHub.  Let me know if it works for you
> now.
Yeah, it works, thanks!
-- 
Respectfully
Azat Khuzhin
Previous: Michael Haggerty
Message 4 of 4 in “git-multimail: migration: Config is not iterable”
  1. Azat KhuzhinMay 29, 2014
  2. Elijah NewrenMay 29, 2014
  3. Michael HaggertyMay 31, 2014
  4. Azat KhuzhinMay 31, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.