Skip to content

Commit 1ee2a7e

Browse files
committed
Not gonna get a nice error
1 parent 67fcb43 commit 1ee2a7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

q2cli/core/cache.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ def _get_current_requirements(self):
158158

159159
def _get_cached_requirements(self):
160160
import os.path
161-
import pkg_resources
162161

163162
path = os.path.join(self._cache_dir, 'requirements.txt')
164163

@@ -177,7 +176,7 @@ def _get_cached_requirements(self):
177176
# Pop off the empty newline at the bottom of the file
178177
deps.remove('')
179178
return deps
180-
except pkg_resources.RequirementParseError:
179+
except Exception:
181180
# Unreadable cached requirements, trigger a cache refresh.
182181
return set()
183182

0 commit comments

Comments
 (0)