From d9af8effcb756d58b6cf1140d8bb2c19eb321f76 Mon Sep 17 00:00:00 2001 From: Lee Pike Date: Mon, 8 Nov 2021 11:54:02 -0800 Subject: [PATCH] Fix bugs --- aws-sam-cli-master/samcli/lib/iac/plugins_interfaces.py | 2 +- aws-xray-sdk-python-master/sample-apps/flask/application.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aws-sam-cli-master/samcli/lib/iac/plugins_interfaces.py b/aws-sam-cli-master/samcli/lib/iac/plugins_interfaces.py index 12058f1..c02fc51 100644 --- a/aws-sam-cli-master/samcli/lib/iac/plugins_interfaces.py +++ b/aws-sam-cli-master/samcli/lib/iac/plugins_interfaces.py @@ -703,7 +703,7 @@ def stacks(self, stacks: List[Stack]) -> None: @property def default_stack(self) -> Optional[Stack]: - if len(self._stacks) > 0: + if self._stacks: return self._stacks[0] return None diff --git a/aws-xray-sdk-python-master/sample-apps/flask/application.py b/aws-xray-sdk-python-master/sample-apps/flask/application.py index 9b20717..7b3b9bd 100644 --- a/aws-xray-sdk-python-master/sample-apps/flask/application.py +++ b/aws-xray-sdk-python-master/sample-apps/flask/application.py @@ -64,4 +64,4 @@ def default(): port = '5000' else: host, port = address.split(":") - app.run(host=host, port=int(port), debug=True) + app.run(host=host, port=int(port), debug=False)