Skip to content

Commit

Permalink
Log a bug in the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
emidiovaleretto committed Nov 26, 2021
1 parent 04396ed commit d167085
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit d167085

Please sign in to comment.