mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 11:01:53 +08:00
Merge pull request #6 from OlegGirko/python-3.7
Make KVMD compatible with Python 3.7
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