cleanup source
This commit is contained in:
@@ -28,7 +28,7 @@ def _get_quarantine(quarantines, name):
|
|||||||
try:
|
try:
|
||||||
quarantine = next((q for q in quarantines if q.name == name))
|
quarantine = next((q for q in quarantines if q.name == name))
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
raise RuntimeError(f"invalid quarantine 'name'")
|
raise RuntimeError("invalid quarantine 'name'")
|
||||||
return quarantine
|
return quarantine
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ class EMailNotification(BaseNotification):
|
|||||||
raise RuntimeError(f"error reading image: {e}")
|
raise RuntimeError(f"error reading image: {e}")
|
||||||
else:
|
else:
|
||||||
filename = basename(img_path)
|
filename = basename(img_path)
|
||||||
img.add_header(f"Content-ID", f"<{filename}>")
|
img.add_header("Content-ID", f"<{filename}>")
|
||||||
self.embedded_imgs.append(img)
|
self.embedded_imgs.append(img)
|
||||||
|
|
||||||
def get_email_body_soup(self, qid, msg):
|
def get_email_body_soup(self, qid, msg):
|
||||||
|
|||||||
Reference in New Issue
Block a user