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