minor 3.7 fixes

This commit is contained in:
Devaev Maxim
2020-09-05 05:58:33 +03:00
parent e106aaebed
commit 0c85248987
6 changed files with 34 additions and 30 deletions

View File

@@ -216,7 +216,7 @@ class KvmdServer(HttpServer): # pylint: disable=too-many-arguments,too-many-ins
("resolution", valid_stream_resolution, StreamerResolutionNotSupported),
]:
value = request.query.get(name)
if (value):
if value:
if name not in current_params:
assert exc_cls is not None, name
raise exc_cls()