🎥 Make videos programmatically with React
format with autopep
Jonny Burgerfce9af8d5d4c
diff --git a/.vscode/settings.json b/.vscode/settings.jsonindex a81e617f6c..f480c4fe75 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -8,15 +8,15 @@"[rust]": {"editor.defaultFormatter": "rust-lang.rust-analyzer"},- "[python]": {- "editor.defaultFormatter": "ms-python.python"- },- "python.formatting.provider": "none","python.analysis.extraPaths": ["./packages/lambda-python/src","./packages/lambda-python/remotion_lambda_sdk"],"[php]": {"editor.defaultFormatter": "DEVSENSE.phptools-vscode"- }+ },+ "[python]": {+ "editor.defaultFormatter": "ms-python.autopep8"+ },+ "python.formatting.provider": "none"}diff --git a/packages/lambda-python/remotion_lambda/remotionclient.py b/packages/lambda-python/remotion_lambda/remotionclient.pyindex 018db98964..480dfd38da 100644--- a/packages/lambda-python/remotion_lambda/remotionclient.py+++ b/packages/lambda-python/remotion_lambda/remotionclient.py@@ -79,13 +79,12 @@ class RemotionClient:decoded_result = json.loads(result)if 'errorMessage' in decoded_result:raise ValueError(decoded_result['errorMessage'])--+if 'type' in decoded_result and decoded_result['type'] == 'error':raise ValueError(decoded_result['message'])if not 'type' in decoded_result or decoded_result['type'] != 'success':- raise ValueError(result)-+ raise ValueError(result)+return decoded_resultdef construct_render_request(self, render_params: RenderParams) -> str: