Skip to content

Commit

Permalink
fix: change NoneType to str for type-checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Danyal-Faheem committed Jan 12, 2024
1 parent 0eeafbc commit b39eb6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutor/plugins/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def discover_package(entrypoint: EntryPoint) -> None:
# Add plugin information
if entrypoint.dist is None:
raise ValueError(f"Could not read plugin version: {name}")
dist_version = entrypoint.dist.version if entrypoint.dist else None
dist_version = entrypoint.dist.version if entrypoint.dist else "Unknown"
hooks.Filters.PLUGINS_INFO.add_item((name, dist_version))

# Import module on enable
Expand Down

0 comments on commit b39eb6c

Please sign in to comment.