Skip to content

Commit 1ebed20

Browse files
committed
fix assign
1 parent 1586069 commit 1ebed20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/InvenTree/common/models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ def issue_mail(
26392639
message.attach_alternative(html_message, 'text/html')
26402640

26412641
# Add any extra headers
2642-
if headers:
2642+
if headers is not None:
26432643
for key, value in headers.items():
26442644
message.extra_headers[key] = value
26452645

@@ -2650,8 +2650,7 @@ def issue_mail(
26502650
# TODO add `References` field for the thread ID
26512651

26522652
# Add headers for flags
2653-
if prio != Priority.NORMAL:
2654-
message.extra_headers['X-Priority'] = str(prio)
2653+
message.extra_headers['X-Priority'] = str(prio)
26552654

26562655
# And now send
26572656
return message.send()

0 commit comments

Comments
 (0)