Browse Source
No need to close, the context manager does it
master
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
0 additions and
1 deletions
-
LogBot/logbot.py
|
@ -86,7 +86,6 @@ def download(self, message): |
|
|
file_path = os.path.join(path, filename) |
|
|
file_path = os.path.join(path, filename) |
|
|
with open(file_path, "wb") as media_file: |
|
|
with open(file_path, "wb") as media_file: |
|
|
media_file.write(data) |
|
|
media_file.write(data) |
|
|
media_file.close() |
|
|
|
|
|
|
|
|
|
|
|
# define media_post |
|
|
# define media_post |
|
|
media_path = os.path.join(media_type, filename) |
|
|
media_path = os.path.join(media_type, filename) |
|
|