- fixed imports in all TclCommands
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from ObjectCollection import *
|
||||
import collections
|
||||
from tclCommands.TclCommand import TclCommandSignaled
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class TclCommandAddRectangle(TclCommandSignaled):
|
||||
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(obj_name))
|
||||
except:
|
||||
except Exception as e:
|
||||
return "Could not retrieve object: %s" % obj_name
|
||||
if obj is None:
|
||||
return "Object not found: %s" % obj_name
|
||||
|
||||
Reference in New Issue
Block a user