Skip to content

matches should still return an Iterator when no match is found #29

@filipeom

Description

@filipeom

I'm trying to rewrite a bunch of code, however a few source files will not match the pattern and matches simply explodes on jsn = json.loads(self.call(cmd_s, text=source)) because call returns None. Is this the expected behaviour? To bypass this I'm catching the JSONDecodeError and going to the next file, but it would be nice if we simply had an empty Iterator

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions