stop query statistics table for north if no north schedule exists
@@ -165,6 +165,8 @@ async def get_north_schedules(request):
north_schedules = await _get_north_schedules(cf_mgr)
north_schs = [ns["name"] for ns in north_schedules]
+ stats = []
+ if len(north_schs):
stats = await _get_sent_stats(storage_client, north_schs)
installed_plugins = _get_installed_plugins()
for sch in north_schedules:
