Skip to content

Commit ae7bc46

Browse files
committed
Jail/jid can be None (when the jail is not running)
1 parent aef58b4 commit ae7bc46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iocage/lib/Jail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ def running(self) -> bool:
10561056
return self.jid is not None
10571057

10581058
@property
1059-
def jid(self) -> int:
1059+
def jid(self) -> typing.Optional[int]:
10601060
"""
10611061
The JID of a running jail or None if the jail is not running
10621062
"""

0 commit comments

Comments
 (0)