Skip to content

Commit

Permalink
Prevent exception
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Mar 2, 2021
1 parent 59046f0 commit 23eac45
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spyder/api/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,15 @@ def aggregate_sections_partials(self, opts):
CONF.notify_observers(section, '__section')
for opt in to_update[section]:
if isinstance(opt, tuple):
print(opt)
opt = opt[:-1]
print(opt)
section_prefix.add_path(opt)
# Notify prefixed observers
for prefix in section_prefix:
print(prefix)
CONF.notify_observers(section, prefix)
try:
CONF.notify_observers(section, prefix)
except Exception:
# Prevent unexpected failures on tests
pass

def get_name(self):
"""
Expand Down

0 comments on commit 23eac45

Please sign in to comment.