Skip to content

[bug fix] Move "depth is None" warning from StorageAttributes.__init__ to Storage.__init__#44

Open
Polarisyjr wants to merge 1 commit intoAccelergy-Project:mainfrom
Polarisyjr:fix/move-depth-warning-to-storage
Open

[bug fix] Move "depth is None" warning from StorageAttributes.__init__ to Storage.__init__#44
Polarisyjr wants to merge 1 commit intoAccelergy-Project:mainfrom
Polarisyjr:fix/move-depth-warning-to-storage

Conversation

@Polarisyjr
Copy link
Copy Markdown

@Polarisyjr Polarisyjr commented Mar 14, 2026

Problem: The depth warning in StorageAttributes.__init__ references self.name, but StorageAttributes inherits from Attributes / DictNode and does not have a name attribute, causing a potential AttributeError.

Fix: Move the warning to Storage.__init__, which inherits from ComponentLeaf, where self.name is properly defined.

StorageAttributes does not have a `name` attribute (it inherits from
Attributes/DictNode, not Leaf). Move the depth warning to Storage.__init__
where both `self.name` and `self.attributes.depth` are accessible.
@Polarisyjr Polarisyjr changed the title Fix depth warning: move from StorageAttributes to Storage [bug fix] Move "depth warning:" from StorageAttributes to Storage Mar 14, 2026
@Polarisyjr Polarisyjr changed the title [bug fix] Move "depth warning:" from StorageAttributes to Storage [bug fix] Move "depth is None" warning from StorageAttributes.__init__ to Storage.__init__ Mar 14, 2026
@Polarisyjr Polarisyjr changed the title [bug fix] Move "depth is None" warning from StorageAttributes.__init__ to Storage.__init__ [bug fix] Move "depth is None" warning from StorageAttributes.__init__ to Storage.__init__ Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant