make Ruff happy
This commit is contained in:
@@ -6,6 +6,8 @@ import asyncio
|
||||
import random
|
||||
import os
|
||||
|
||||
from .groups import groups
|
||||
|
||||
from flask import (
|
||||
Blueprint,
|
||||
jsonify,
|
||||
@@ -15,8 +17,6 @@ from flask import (
|
||||
|
||||
client = Blueprint("client", __name__)
|
||||
|
||||
from .groups import groups
|
||||
|
||||
client.register_blueprint(groups)
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ async def register():
|
||||
"device_id": "VVOONNAA"
|
||||
})
|
||||
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return jsonify({
|
||||
@@ -342,7 +342,7 @@ async def sync():
|
||||
if "timeout" in request.args:
|
||||
try:
|
||||
wait_time = int(request.args.get("timeout")) / 1000
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
await asyncio.sleep(wait_time)
|
||||
|
||||
@@ -420,7 +420,7 @@ async def events():
|
||||
if "timeout" in request.args:
|
||||
try:
|
||||
await asyncio.sleep(int(request.args["timeout"]) / 1000)
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return jsonify({
|
||||
|
||||
Reference in New Issue
Block a user