Skip to content

Commit

Permalink
switch argument list
Browse files Browse the repository at this point in the history
Who did this?!
  • Loading branch information
bmario committed Mar 19, 2024
1 parent 8e282b6 commit 1a478fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricq_sink_websocket/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def websocket_handler(request: Request) -> MetricqWebSocketResponse:
try:
msg_data = json.loads(msg.data)
if msg_data["function"] == "subscribe":
if not isinstance(list, msg_data["metrics"]) or any(
if not isinstance(msg_data["metrics"], list) or any(
not isinstance(m, str) for m in msg_data["metrics"]
):
raise TypeError("metrics must be a list of strings")
Expand Down

0 comments on commit 1a478fa

Please sign in to comment.