Skip to content

Conversation

@leepike
Copy link

@leepike leepike commented Nov 8, 2021

No description provided.

else:
host, port = address.split(":")
app.run(host=host, port=int(port), debug=True)
app.run(host=host, port=int(port), debug=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

Don't hardcode the DEBUG variable because some system extensions might be configured to use a diffrent value. Instead, use OS environment variables to set up the debug feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants