Skip to content

Unhandled IndexError #208

@AntonM97

Description

@AntonM97

Worked on one pc have indicated the same file that was previously used for flowkeeper export and on other PC this file causes error even if indexes aren't repeating

Versions:

  • Flowkeeper: 1.0.2
  • Qt: 6.8.2 (xcb)
  • Python: 3.12.9 (main, Nov 10 2011, 15:00:00) [GCC 14.2.0]
  • Platform: Linux 6.8.0-90-generic # 91~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 20 15:20:45 UTC 2
  • Sandbox: Flatpak
  • Kernel: Linux-6.8.0-90-generic-x86_64-with-glibc2.40

Stack trace:

Traceback (most recent call last):
  File "/app/flowkeeper/fk/desktop/import_wizard.py", line 351, in initializePage
    self.start()
  File "/app/flowkeeper/fk/desktop/import_wizard.py", line 500, in start
    self._import_from_file()
  File "/app/flowkeeper/fk/desktop/import_wizard.py", line 410, in _import_from_file
    import_(self._source_holder.get_source(),
  File "/app/flowkeeper/fk/core/import_export.py", line 376, in import_
    import_classic(new_source_holder.request_new_source(),
  File "/app/flowkeeper/fk/core/import_export.py", line 624, in import_classic
    completion_callback(total)
  File "/app/flowkeeper/fk/core/import_export.py", line 381, in <lambda>
    lambda total: _merge_sources(source,  # Step 2 is done there
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/flowkeeper/fk/core/import_export.py", line 547, in _merge_sources
    for strategy in merge_strategies(existing_source, new_source_holder.get_source().get_data()):
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/flowkeeper/fk/core/import_export.py", line 253, in merge_strategies
    p_old = pomodoros_old[i]
            ~~~~~~~~~~~~~^^^
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions