Commit 53ae520
authored
[BUG] fix broken version inspection if package distribution has
Fixed the following bug
pytorch_forecasting\utils\_dependencies\_dependencies.py:19, in
_get_installed_packages_private()
---> 19 package_names = {dist.metadata["Name"] for dist in dists}
TypeError: 'NoneType' object is not subscriptable
#### Reference Issues/PRs
Fixes #1925
#### What does this implement/fix? Explain your changes.
Added exception handling to the original package_names =
{dist.metadata["Name"] for dist in dists}None name (#1926)1 parent f93bd39 commit 53ae520
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
0 commit comments