Skip to content

Pathogen crashes when one of last 2 nodes is deleted #52

Description

@EcstaticPilot

when there 2 nodes left on the screen and you try and delete either one, pathogen crashes with the following message

Traceback (most recent call last):
File "c:\Users\nikhi\Documents\GitHub\Pathogen4\root_container\panel_container\command_block\command_inserter.py", line 96, in draw
rect = [self.LEFT_X, self.TOP_Y + Y_MARGIN, self.WIDTH, self.HEIGHT - Y_MARGIN*2]
^^^^^^^^^^^
AttributeError: 'CommandInserter' object has no attribute 'LEFT_X'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\nikhi\Documents\GitHub\Pathogen4\main.py", line 200, in
main()
File "c:\Users\nikhi\Documents\GitHub\Pathogen4\main.py", line 191, in main
entities.drawEntities(interactor, screen, mouse, dimensions)
File "c:\Users\nikhi\Documents\GitHub\Pathogen4\entity_handler\entity_manager.py", line 117, in drawEntities
entity.draw(screen, selected, hovering)
File "c:\Users\nikhi\Documents\GitHub\Pathogen4\root_container\panel_container\command_block\command_inserter.py", line 98, in draw
raise Exception("error", self)
Exception: ('error', CommandInserter (D) 1246266752720 VariableContainer)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions