fix bare except and log the error

pull/737/head
evelynmitchell 4 months ago
parent 90f27e48a1
commit 716a9c0ba9

@ -210,7 +210,8 @@ class SwarmsIssueReporter:
for dist in pkg_resources.working_set: for dist in pkg_resources.working_set:
deps.append(f"- {dist.key} {dist.version}") deps.append(f"- {dist.key} {dist.version}")
return "\n".join(deps) return "\n".join(deps)
except: except Exception as e:
logger.error(f"Error fetching dependency information: {str(e)}")
return "Unable to fetch dependency information" return "Unable to fetch dependency information"
# First, add this method to your SwarmsIssueReporter class # First, add this method to your SwarmsIssueReporter class

Loading…
Cancel
Save