Commit 2644059d authored by Roman Alifanov's avatar Roman Alifanov

fix typo

parent a388a648
...@@ -24,7 +24,7 @@ def init_settings_stack(stack, listbox, split_view): ...@@ -24,7 +24,7 @@ def init_settings_stack(stack, listbox, split_view):
stack.remove(page) stack.remove(page)
else: else:
print("First init...") print("First init...")
for module_data in yaml_data: for module_data in yaml_data:
module = Module(module_data) module = Module(module_data)
...@@ -47,7 +47,7 @@ def init_settings_stack(stack, listbox, split_view): ...@@ -47,7 +47,7 @@ def init_settings_stack(stack, listbox, split_view):
dialog.deps_message_textbuffer.set_text( dialog.deps_message_textbuffer.set_text(
f"{deps_message}\n{conflicts_message}" f"{deps_message}\n{conflicts_message}"
) )
while True: while True:
w = listbox.get_root() w = listbox.get_root()
if w.get_visible() and w.get_mapped(): if w.get_visible() and w.get_mapped():
...@@ -60,7 +60,7 @@ def init_settings_stack(stack, listbox, split_view): ...@@ -60,7 +60,7 @@ def init_settings_stack(stack, listbox, split_view):
break break
modules_dict[module.name] = module modules_dict[module.name] = module
for section_data in module_data.get('sections', []): for section_data in module_data.get('sections', []):
page_name = module.get_translation(section_data.get('page', 'Default')) page_name = module.get_translation(section_data.get('page', 'Default'))
module_page_name = section_data.get('page', 'Default') module_page_name = section_data.get('page', 'Default')
...@@ -84,7 +84,7 @@ def init_settings_stack(stack, listbox, split_view): ...@@ -84,7 +84,7 @@ def init_settings_stack(stack, listbox, split_view):
except Exception as e: except Exception as e:
from ..main import get_error from ..main import get_error
error = get_error() error = get_error()
full_traceback = traceback.format_exc() full_traceback = traceback.format_exc()
e = f"Module '{module.name}' loading error \nError: {e}\nFull traceback:\n{full_traceback}" e = f"Module '{module.name}' loading error \nError: {e}\nFull traceback:\n{full_traceback}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment