Skip to content

Commit c85cfb2

Browse files
committed
Ignore any exception raised from pkg_resources
Newer versions of setuptools or whatever started raising different exceptions, so let's just catch everything.
1 parent e7a2957 commit c85cfb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/debug/utils/packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_package_version(module_name, app):
1717
# pull version from pkg_resources if distro exists
1818
try:
1919
return pkg_resources.get_distribution(module_name).version
20-
except pkg_resources.DistributionNotFound:
20+
except Exception:
2121
pass
2222

2323
if hasattr(app, 'get_version'):

0 commit comments

Comments
 (0)