We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b37b41 commit 44941a5Copy full SHA for 44941a5
1 file changed
src/seclab_taskflows/mcp_servers/codeql_python/mcp_server.py
@@ -126,7 +126,7 @@ def _csv_parse(raw):
126
this_obj[k.strip()] = row[j + 2]
127
results.append(this_obj)
128
except (csv.Error, IndexError, ValueError) as e:
129
- return ["Error: CSV parsing error: " + str(e)]
+ return f"Error: CSV parsing error: {e}"
130
return results
131
132
@@ -167,8 +167,6 @@ def remote_sources(owner: str = Field(description="The owner of the GitHub repos
167
# Check if results is an error (list of strings) or valid data (list of dicts)
168
if isinstance(results, str):
169
return f"Error: {results}"
170
- if results and isinstance(results[0], str):
171
- return f"Error: {results[0]}"
172
173
# Store each result as a source
174
stored_count = 0
0 commit comments