Skip to content

Commit

Permalink
fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed May 17, 2024
1 parent d95cb58 commit a1930f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rer/newsletter/browser/message/messagepreview.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def getMessageStyle(self):
break
if not channel:
return DEFAULT_STYLES
return DEFAULT_STYLES + getattr(channel, "css_style", "")
channel_styles = getattr(channel, "css_style", "") or ""
return DEFAULT_STYLES + channel_styles

@property
def channel(self):
Expand Down

0 comments on commit a1930f6

Please sign in to comment.