feat: delete exception handling

This commit is contained in:
Swann Martinez
2019-08-28 15:02:57 +02:00
parent fcf9f2e650
commit a501f516c2
2 changed files with 6 additions and 2 deletions

View File

@ -17,6 +17,7 @@ from . import environment, presence, ui, utils, delayable
from .libs import umsgpack
from .libs.replication.replication.data import ReplicatedDataFactory
from .libs.replication.replication.interface import Session
from .libs.replication.replication.exception import NonAuthorizedOperationError
from . import bl_types
logger = logging.getLogger(__name__)
@ -191,7 +192,10 @@ class SessionPropertyRemoveOperator(bpy.types.Operator):
client.remove(self.property_path)
return {"FINISHED"}
except:
except:# NonAuthorizedOperationError:
self.report(
{'ERROR'},
"Non authorized operation")
return {"CANCELLED"}