From d167085c642fcf2605709caf4f5199c8bdefd9ce Mon Sep 17 00:00:00 2001 From: Emidio Valereto Date: Fri, 26 Nov 2021 21:35:31 +0000 Subject: [PATCH] Log a bug in the README.md --- .vscode/settings.json | 4 ++-- README.md | 37 +++++++++++++++++++++++++++++++++++++ functions.py | 3 ++- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5885b0a..37928f9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,7 @@ { - "python.linting.pylintEnabled": false, + "python.linting.pylintEnabled": true, "python.linting.enabled": false, - "python.linting.pycodestyleEnabled": true, + "python.linting.pycodestyleEnabled": false, "python.linting.flake8Enabled": false, "python.terminal.activateEnvironment": false, "python.formatting.autopep8Path": "/home/gitpod/.pyenv/shims/autopep8", diff --git a/README.md b/README.md index d8439bd..685e2fa 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,43 @@ To create the flowchart, I have used the [LucidChart](https://www.lucidchart.com ![Config Vars](./documents/readme-images/config_vars.png) +2. When checking the code from `send_email.py` through the PEP8 online checker, an error was displayed, as shown in the image below. + +``` + with smtplib.SMTP_SSL(host=host, port=port, context=context) as server: + +``` + +![Bug1](./documents/readme-images/bug1.png) + +``` + with smtplib.SMTP_SSL(host, port, context=context) as server: + +``` + +Error fixed after removing `host` and `port` parameters from the SMTP_SSL function. + +1. The same error happens in the function `functions.py`, as shown in the image below. + +``` + chatbot_message( + "Sorry. I didn't understand what you said.\nCan you please say it again?" + ) + +``` + +![Bug2](./documents/readme-images/bug2.png) + +Fixed bug when splitting string into two lines. + +``` + chatbot_message( + "Sorry. I didn't understand what you said." + "\nCan you please say it again?" + ) + +``` + ----- ## Technologies Used diff --git a/functions.py b/functions.py index dc9cbb4..f1a36a2 100644 --- a/functions.py +++ b/functions.py @@ -272,7 +272,8 @@ def end_chat(): while user_answer not in ["y", "n"]: chatbot_message( - "Sorry. I didn't understand what you said.\nCan you please say it again?" + "Sorry. I didn't understand what you said." + "\nCan you please say it again?" ) user_answer = get_str_input()[0]