Gracefully handle use of sync feature without home project access.
This is for people that aren't part of the AB-testing group, who still used this version of the addon.
This commit is contained in:
parent
e044607d91
commit
822c8daf07
@ -79,7 +79,10 @@ async def get_home_project(params=None) -> pillarsdk.Project:
|
|||||||
HOME_PROJECT_ENDPOINT, params=params)
|
HOME_PROJECT_ENDPOINT, params=params)
|
||||||
except sdk_exceptions.ForbiddenAccess:
|
except sdk_exceptions.ForbiddenAccess:
|
||||||
log.warning('Access to the home project was denied. '
|
log.warning('Access to the home project was denied. '
|
||||||
'Double-check that you are a cloud subscriber and logged in.')
|
'Double-check that you are logged in with valid BlenderID credentials.')
|
||||||
|
raise
|
||||||
|
except sdk_exceptions.ResourceNotFound:
|
||||||
|
log.warning('No home project available.')
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
@ -376,6 +379,10 @@ class PILLAR_OT_sync(pillar.PillarOperatorMixin,
|
|||||||
self.bss_report({'ERROR'}, 'Did not get access to home project.')
|
self.bss_report({'ERROR'}, 'Did not get access to home project.')
|
||||||
self._state = 'QUIT'
|
self._state = 'QUIT'
|
||||||
return
|
return
|
||||||
|
except sdk_exceptions.ResourceNotFound:
|
||||||
|
self.bss_report({'ERROR'}, 'Home project not found.')
|
||||||
|
self._state = 'QUIT'
|
||||||
|
return
|
||||||
|
|
||||||
# Only create the folder structure if we're pushing.
|
# Only create the folder structure if we're pushing.
|
||||||
may_create = self.action == 'PUSH'
|
may_create = self.action == 'PUSH'
|
||||||
|
Reference in New Issue
Block a user