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
|
||||
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
|
||||
|
||||
@property
|
||||
|
||||
@ -348,6 +348,7 @@ class ShamanTransferrer(bat_transfer.FileTransferer):
|
||||
|
||||
@property
|
||||
def checkout_location(self) -> str:
|
||||
"""Returns the checkout location, or '' if no checkout was made."""
|
||||
if not self._checkout_location:
|
||||
raise ValueError('No checkout was created yet.')
|
||||
return ''
|
||||
return self._checkout_location
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user