feat: delete exception handling
This commit is contained in:
parent
fcf9f2e650
commit
a501f516c2
@ -1 +1 @@
|
||||
Subproject commit 2d5ef3d18c4f5354491cc5ece0c07ec3365d36e1
|
||||
Subproject commit bc49494fa2d39096106f74d07554e5bd91bd0424
|
@ -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"}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user