1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

cosmetic changes

This commit is contained in:
Alexander Graf 2020-12-20 23:50:26 +01:00
parent 815f47667b
commit 3b35180b41

View File

@ -70,7 +70,7 @@ class CommaSeparatedList(db.TypeDecorator):
def process_bind_param(self, value, dialect): def process_bind_param(self, value, dialect):
if not isinstance(value, (list, set)): if not isinstance(value, (list, set)):
raise TypeError('Should be a list') raise TypeError('Must be a list')
for item in value: for item in value:
if ',' in item: if ',' in item:
raise ValueError('Item must not contain a comma') raise ValueError('Item must not contain a comma')
@ -792,9 +792,9 @@ class User(Base, Email):
return emails return emails
def send_welcome(self): def send_welcome(self):
if app.config["WELCOME"]: if app.config['WELCOME']:
self.sendmail(app.config["WELCOME_SUBJECT"], self.sendmail(app.config['WELCOME_SUBJECT'],
app.config["WELCOME_BODY"]) app.config['WELCOME_BODY'])
@classmethod @classmethod
def get(cls, email): def get(cls, email):