feat: delete exception handling

This commit is contained in:
Swann Martinez 2019-08-28 15:02:57 +02:00
parent fcf9f2e650
commit a501f516c2
No known key found for this signature in database
GPG Key ID: 414CCAFD8DA720E1
2 changed files with 6 additions and 2 deletions

@ -1 +1 @@
Subproject commit 2d5ef3d18c4f5354491cc5ece0c07ec3365d36e1
Subproject commit bc49494fa2d39096106f74d07554e5bd91bd0424

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"}