# HG changeset patch # User Marcin Kuzminski # Date 2017-11-16 19:34:38 # Node ID 6d7e5ab7cb49516ed54fe6b3a11b9af944d23e2c # Parent 5b5f1dca6b45b023fd394e6df2c844fd76a64a85 settings: fix potential 500 problem on bad data passed in. diff --git a/rhodecode/model/settings.py b/rhodecode/model/settings.py --- a/rhodecode/model/settings.py +++ b/rhodecode/model/settings.py @@ -382,7 +382,7 @@ class IssueTrackerSettingsModel(object): else: all_patterns = self.get_global_settings() settings_model = self.global_settings - entries = all_patterns.get(uid) + entries = all_patterns.get(uid, []) for del_key in entries: setting_name = self._get_keyname(del_key, uid)