Skip to content

Commit d167085

Browse files
Log a bug in the README.md
1 parent 04396ed commit d167085

File tree

3 files changed

+41
-3
lines changed

3 files changed

+41
-3
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"python.linting.pylintEnabled": false,
2+
"python.linting.pylintEnabled": true,
33
"python.linting.enabled": false,
4-
"python.linting.pycodestyleEnabled": true,
4+
"python.linting.pycodestyleEnabled": false,
55
"python.linting.flake8Enabled": false,
66
"python.terminal.activateEnvironment": false,
77
"python.formatting.autopep8Path": "/home/gitpod/.pyenv/shims/autopep8",

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,43 @@ To create the flowchart, I have used the [LucidChart](https://www.lucidchart.com
252252

253253
![Config Vars](./documents/readme-images/config_vars.png)
254254

255+
2. When checking the code from `send_email.py` through the PEP8 online checker, an error was displayed, as shown in the image below.
256+
257+
```
258+
with smtplib.SMTP_SSL(host=host, port=port, context=context) as server:
259+
260+
```
261+
262+
![Bug1](./documents/readme-images/bug1.png)
263+
264+
```
265+
with smtplib.SMTP_SSL(host, port, context=context) as server:
266+
267+
```
268+
269+
Error fixed after removing `host` and `port` parameters from the SMTP_SSL function.
270+
271+
1. The same error happens in the function `functions.py`, as shown in the image below.
272+
273+
```
274+
chatbot_message(
275+
"Sorry. I didn't understand what you said.\nCan you please say it again?"
276+
)
277+
278+
```
279+
280+
![Bug2](./documents/readme-images/bug2.png)
281+
282+
Fixed bug when splitting string into two lines.
283+
284+
```
285+
chatbot_message(
286+
"Sorry. I didn't understand what you said."
287+
"\nCan you please say it again?"
288+
)
289+
290+
```
291+
255292
-----
256293

257294
## Technologies Used

functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ def end_chat():
272272
while user_answer not in ["y", "n"]:
273273

274274
chatbot_message(
275-
"Sorry. I didn't understand what you said.\nCan you please say it again?"
275+
"Sorry. I didn't understand what you said."
276+
"\nCan you please say it again?"
276277
)
277278
user_answer = get_str_input()[0]
278279

0 commit comments

Comments
 (0)