Skip to content

Commit 2cc87d6

Browse files
committed
remove stupid log message on reading emails gmail api tutorial 2
1 parent 48ec6eb commit 2cc87d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: general/gmail-api/read_emails.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def parse_parts(service, parts, folder_name, message):
3939
if part.get("parts"):
4040
# recursively call this function when we see that a part
4141
# has parts inside
42-
print("calling parse_parts with folder_name:", folder_name)
4342
parse_parts(service, part.get("parts"), folder_name, message)
4443
if mimeType == "text/plain":
4544
# if the email part is text plain
@@ -72,7 +71,7 @@ def parse_parts(service, parts, folder_name, message):
7271
filepath = os.path.join(folder_name, filename)
7372
if data:
7473
with open(filepath, "wb") as f:
75-
f.write(urlsafe_b64decode(data))
74+
f.write(urlsafe_b64decode(data))
7675

7776

7877
def read_message(service, message):

0 commit comments

Comments
 (0)