Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/leek/api/control/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def get_subscription_queues(app_name, app_env, hide_pid_boxes=True):
# noinspection PyBroadException
try:
connection, client = get_manager_client(subscription)
client.is_alive()
if connection.transport.driver_type == "amqp":
client.is_alive()
except NetworkError:
return responses.wrong_access_refused
except Exception:
Expand Down Expand Up @@ -192,7 +193,8 @@ def purge_queue(app_name, app_env, queue_name):
# noinspection PyBroadException
try:
connection, client = get_manager_client(subscription)
client.is_alive()
if connection.transport.driver_type == "amqp":
client.is_alive()
except NetworkError:
return responses.wrong_access_refused
except Exception:
Expand Down