Flanker is not thread safe, hide the import until it is actually needed.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
@@ -7,7 +7,6 @@ import os
|
|||||||
import poplib
|
import poplib
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from flanker import mime
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from django.core.exceptions import ValidationError
|
from django.core.exceptions import ValidationError
|
||||||
@@ -553,6 +552,8 @@ class EmailBaseModel(IntervalBaseModel):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def process_message(source, message_text):
|
def process_message(source, message_text):
|
||||||
|
from flanker import mime
|
||||||
|
|
||||||
counter = 1
|
counter = 1
|
||||||
message = mime.from_string(force_str(message_text))
|
message = mime.from_string(force_str(message_text))
|
||||||
metadata_dictionary = {}
|
metadata_dictionary = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user