Fix ValueError when not requesting a checkout
This commit is contained in:
parent
dabb249e9b
commit
10abeaea49
@ -75,7 +75,10 @@ class ShamanPacker(bat_pack.Packer):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def checkout_location(self) -> str:
|
def checkout_location(self) -> str:
|
||||||
"""Return the checkout location of the packed blend file."""
|
"""Return the checkout location of the packed blend file.
|
||||||
|
|
||||||
|
:return: the checkout location, or '' if no checkout was made.
|
||||||
|
"""
|
||||||
return self._checkout_location
|
return self._checkout_location
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
@ -348,6 +348,7 @@ class ShamanTransferrer(bat_transfer.FileTransferer):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def checkout_location(self) -> str:
|
def checkout_location(self) -> str:
|
||||||
|
"""Returns the checkout location, or '' if no checkout was made."""
|
||||||
if not self._checkout_location:
|
if not self._checkout_location:
|
||||||
raise ValueError('No checkout was created yet.')
|
return ''
|
||||||
return self._checkout_location
|
return self._checkout_location
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user