Skip to content

Commit

Permalink
Validate on __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Oct 30, 2023
1 parent 9983284 commit 039ba23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pypesto/profile/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def __init__(
self.magic_factor_obj_value = magic_factor_obj_value
self.whole_path = whole_path

self.validate()

def __getattr__(self, key):
"""Allow usage of keys like attributes."""
try:
Expand Down

0 comments on commit 039ba23

Please sign in to comment.