Skip to content

Commit

Permalink
Don't let this check run on Folders.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohinb2 committed Jul 15, 2024
1 parent 8eb0b72 commit 745dc06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runhouse/resources/packages/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __str__(self):

@staticmethod
def is_python_package_string(s: str):
return re.match(r"^[a-zA-Z0-9\._-]+$", s) is not None
return isinstance(s, str) and re.match(r"^[a-zA-Z0-9\._-]+$", s) is not None

@staticmethod
def _find_locally_installed_version(package_name: str):
Expand Down

0 comments on commit 745dc06

Please sign in to comment.