You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "C:\Users\xxx\.virtualenvs\xxx-3g_HEZBh\lib\site-packages\click\utils.py", line 572, in _expand_args
matches = glob(arg, recursive=glob_recursive)
File "C:\Program Files\Python39\lib\glob.py", line 22, in glob
return list(iglob(pathname, recursive=recursive))
File "C:\Program Files\Python39\lib\glob.py", line 75, in _iglob
for name in glob_in_dir(dirname, basename, dironly):
File "C:\Program Files\Python39\lib\glob.py", line 86, in _glob1
return fnmatch.filter(names, pattern)
File "C:\Program Files\Python39\lib\fnmatch.py", line 58, in filter
match = _compile_pattern(pat)
File "C:\Program Files\Python39\lib\fnmatch.py", line 52, in _compile_pattern
return re.compile(res).match
File "C:\Program Files\Python39\lib\re.py", line 252, in compile
return _compile(pattern, flags)
File "C:\Program Files\Python39\lib\re.py", line 304, in _compile
p = sre_compile.compile(pattern, flags)
File "C:\Program Files\Python39\lib\sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "C:\Program Files\Python39\lib\sre_parse.py", line 948, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "C:\Program Files\Python39\lib\sre_parse.py", line 443, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "C:\Program Files\Python39\lib\sre_parse.py", line 834, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File "C:\Program Files\Python39\lib\sre_parse.py", line 443, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "C:\Program Files\Python39\lib\sre_parse.py", line 598, in _parse
raise source.error(msg, len(this) + 1 + len(that))
re.error: bad character range e-a at position 35
Expected behavior - if expansion fails, treat it as an empty glob match. Something like this but without the bare except catch.
I'm using pipenv to run pytest which is calling into click and attempting to expand arguments and failing.
The command I'm running in context is
but it can replicated without using pipenv or pytest and produce the same exception.
Running
results in
Expected behavior - if expansion fails, treat it as an empty glob match. Something like this but without the bare except catch.
Environment:
The text was updated successfully, but these errors were encountered: