If attached file exist
This commit is contained in:
parent
d1a22548cd
commit
d18bd817fd
|
|
@ -68,6 +68,7 @@ class ThreadMaileur():
|
|||
)
|
||||
mail.attach_alternative(self.html, "text/html")
|
||||
|
||||
if self.urls_for_attached_files:
|
||||
for filename, url in self.urls_for_attached_files.items():
|
||||
response = requests.get(url)
|
||||
if response.status_code == 200:
|
||||
|
|
|
|||
Loading…
Reference in New Issue