Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

f = batou.component.Attribute(str) not raising exception anymore when accessing without setting #318

Closed
frlan opened this issue Aug 25, 2022 · 0 comments · Fixed by #321
Closed
Assignees
Milestone

Comments

@frlan
Copy link
Member

frlan commented Aug 25, 2022

Having

class MyService(batou.component.Component):

    foo = batou.component.Attribute(str)

and later either

def configure(self):
    baa = self.foo

or inside Jinja

{{component.foo}}

is not raising an exeption anymore. I think this was introduced with 2.3b4 as in b3 it was still working.

@ctheune ctheune added this to the batou 2.3 milestone Aug 26, 2022
@ctheune ctheune changed the title f = batou.component.Attribute(str) not raising excaption anymore when accessing without setting f = batou.component.Attribute(str) not raising exception anymore when accessing without setting Sep 8, 2022
@ctheune ctheune assigned ctheune and unassigned elikoga Sep 8, 2022
@ctheune ctheune closed this as completed in 0931f6d Sep 8, 2022
elikoga pushed a commit that referenced this issue Nov 29, 2023
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 a pull request may close this issue.

3 participants