fixed unitialized var

slight_refactoring
Sascha Rommelfangen 2018-04-03 11:18:56 +02:00
parent abfec60361
commit 568b533a63
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ for removeword in removelist:
email_subject = re.sub(removeword, "", email_subject)
# Check if autopublish key is present and valid
auto_publish = False
autopublish_key = "key:" + m2m_key
if autopublish_key in email_data:
auto_publish = True