mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
Remove all uses of assignment expressions.
This is needed to port to Python 3.7 because Raspbian 10 doesn't have Python 3.8. Signed-off-by: Oleg Girko <ol@infoserver.lv>
This commit is contained in:
@@ -215,7 +215,8 @@ class KvmdServer(HttpServer): # pylint: disable=too-many-arguments,too-many-ins
|
||||
("desired_fps", valid_stream_fps, None),
|
||||
("resolution", valid_stream_resolution, StreamerResolutionNotSupported),
|
||||
]:
|
||||
if (value := request.query.get(name)):
|
||||
value = request.query.get(name)
|
||||
if (value):
|
||||
if name not in current_params:
|
||||
assert exc_cls is not None, name
|
||||
raise exc_cls()
|
||||
|
||||
Reference in New Issue
Block a user