Skip to content

Commit 8dc6c1c

Browse files
committed
Fix v2.Problem.id
1 parent 2ec51e8 commit 8dc6c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

petab/v2/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ def mappings(self) -> list[Mapping]:
16101610
@property
16111611
def id(self) -> str | None:
16121612
"""The ID of the PEtab problem if set, ``None`` otherwise."""
1613-
return self.config.id
1613+
return self.config.id if self.config else None
16141614

16151615
@id.setter
16161616
def id(self, value: str):

0 commit comments

Comments
 (0)