Skip to content

goto <magicword> <random> gives TypeError: argument of type 'bool' is not iterable #119

@technocake

Description

@technocake

TODO

  • write tests for this case
  • fix bug
$ goto downloads l
Traceback (most recent call last):
  File "/usr/local/bin/the_real_goto.py", line 11, in <module>
    load_entry_point('magicgoto', 'console_scripts', 'the_real_goto.py')()
  File "/Users/technocake/code/goto/goto/the_real_goto.py", line 67, in main
    output, err = run_command(magic, command, args, options)
  File "/Users/technocake/code/goto/goto/the_real_goto.py", line 94, in run_command
    return commands.default(magic, None, args, options)
  File "/Users/technocake/code/goto/goto/commands/default.py", line 21, in default
    _output, err = open(magic, '', [magicword], verbose)
  File "/Users/technocake/code/goto/goto/commands/open.py", line 14, in open
    verbose = '-v' in options or '--verbose' in options
TypeError: argument of type 'bool' is not iterable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions