From 2080f925584c99e6804d1365da633746bea90eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 22 Jun 2016 16:26:38 +0200 Subject: [PATCH] Removed now-unused code --- blender_cloud/settings_sync.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/blender_cloud/settings_sync.py b/blender_cloud/settings_sync.py index 601750c..4c69b01 100644 --- a/blender_cloud/settings_sync.py +++ b/blender_cloud/settings_sync.py @@ -172,14 +172,7 @@ class PILLAR_OT_sync(async_loop.AsyncModalOperatorMixin, bpy.types.Operator): self.log.exception('Unexpected exception caught.') self.report({'ERROR'}, 'Unexpected error: %s' % ex) - try: - self._state = 'QUIT' - except ReferenceError: - # This happens after the call to bpy.ops.wm.read_homefile() in action_pull(). - # That call erases the StructRNA of this operator. As a result, it no longer - # runs as a modal operator. The currently running Python code is allowed - # to finish, though. - pass + self._state = 'QUIT' async def action_push(self, context): """Sends files to the Pillar server."""