Show error in GUI when Blender Cloud is unreachable
This commit is contained in:
parent
5026dfc441
commit
74958cf217
@ -860,6 +860,13 @@ class AuthenticatedPillarOperatorMixin(PillarOperatorMixin):
|
|||||||
self.report({'ERROR'}, 'Please log in on Blender ID first.')
|
self.report({'ERROR'}, 'Please log in on Blender ID first.')
|
||||||
self.quit()
|
self.quit()
|
||||||
return False
|
return False
|
||||||
|
except requests.exceptions.ConnectionError:
|
||||||
|
self.log.exception('Error checking pillar credentials.')
|
||||||
|
self.report({'ERROR'}, 'Unable to connect to Blender Cloud, '
|
||||||
|
'check your internet connection.')
|
||||||
|
self.quit()
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
self.user_id = self.db_user['_id']
|
self.user_id = self.db_user['_id']
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user