##// END OF EJS Templates
Fixed error 500 if the user does not have notification username
neko259 -
r1453:bebb5818 default
parent child Browse files
Show More
@@ -145,10 +145,12 b' class SettingsManager:'
145 145
146 146 def get_notification_usernames(self):
147 147 names = set()
148 name_list = self.get_setting(SETTING_USERNAME).strip()
149 if name_list is not None and len(name_list) > 0:
150 names = name_list.lower().split(',')
151 names = set(name.strip() for name in names)
148 name_list = self.get_setting(SETTING_USERNAME)
149 if name_list is not None:
150 name_list = name_list.strip()
151 if len(name_list) > 0:
152 names = name_list.lower().split(',')
153 names = set(name.strip() for name in names)
152 154 return names
153 155
154 156
General Comments 0
You need to be logged in to leave comments. Login now