Skip to content

Commit

Permalink
Fix pylance error about symbol not being found in module
Browse files Browse the repository at this point in the history
  • Loading branch information
graveljp committed Jan 30, 2025
1 parent 2409835 commit 3789f78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion smugcli/smugmug_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from hachoir.stream import StringInputStream
from hachoir.core import config as hachoir_config
import jsonpath_ng
from jsonpath_ng import exceptions as jsonpath_exceptions

from . import persistent_dict
from . import smugmug as smugmug_lib
Expand Down Expand Up @@ -168,7 +169,7 @@ def ls( # pylint: disable=invalid-name
if query:
try:
parsed_query = jsonpath_ng.parse(query)
except jsonpath_ng.exceptions.JSONPathError as exc:
except jsonpath_exceptions.JSONPathError as exc:
print(f'Invalid query string "{query}": {exc}')
return

Expand Down

0 comments on commit 3789f78

Please sign in to comment.