Skip to content

Exceptions on search term without depth, and when processing re module #6

Description

@skeledrew

As shown in the following examples:

>>> ls(os, 'blah')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/skeledrew/.pyenv/versions/3.6.1/envs/general/lib/python3.6/site-packages/python_ls/_ls.py", line 32, in ls
    dunder=dunder, under=under):
  File "/home/skeledrew/.pyenv/versions/3.6.1/envs/general/lib/python3.6/site-packages/python_ls/_ls.py", line 53, in iter_ls
    if current_depth <= depth:
TypeError: '<=' not supported between instances of 'int' and 'NoneType'
'<=' not supported between instances of 'int' and 'NoneType'

and

>>> ls(re)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/skeledrew/.pyenv/versions/3.6.1/envs/general/lib/python3.6/site-packages/python_ls/_ls.py", line 37, in ls
    size = len(value)
TypeError: object of type 'RegexFlag' has no len()
object of type 'RegexFlag' has no len()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions