- in Tools Database added a contextual menu to add/copy/delete tool; CTRL+C, DEL keys work too; key T for adding a tool is now only partially working
- in Tools Database made the status bar messages show when adding/copying/deleting tools in DB - changed all Except statements that were single to except Exception as recommended in some PEP - renamed the Copper Fill Tool to Copper Thieving Tool as this is a more appropriate name; started to add ability for more types of copper thieving besides solid - fixed some issues recently introduced in ParseSVG - updated POT file
This commit is contained in:
@@ -56,7 +56,7 @@ class TclCommandAddCircle(TclCommand):
|
||||
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(obj_name))
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return "Could not retrieve object: %s" % obj_name
|
||||
if obj is None:
|
||||
return "Object not found: %s" % obj_name
|
||||
|
||||
@@ -58,7 +58,7 @@ class TclCommandAddRectangle(TclCommandSignaled):
|
||||
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(obj_name))
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return "Could not retrieve object: %s" % obj_name
|
||||
if obj is None:
|
||||
return "Object not found: %s" % obj_name
|
||||
|
||||
@@ -81,7 +81,7 @@ class TclCommandAlignDrill(TclCommandSignaled):
|
||||
# Get source object.
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(name))
|
||||
except:
|
||||
except Exception:
|
||||
return "Could not retrieve object: %s" % name
|
||||
|
||||
if obj is None:
|
||||
@@ -179,7 +179,7 @@ class TclCommandAlignDrill(TclCommandSignaled):
|
||||
if 'box' in args:
|
||||
try:
|
||||
box = self.app.collection.get_by_name(args['box'])
|
||||
except:
|
||||
except Exception:
|
||||
return "Could not retrieve object box: %s" % args['box']
|
||||
|
||||
if box is None:
|
||||
|
||||
@@ -52,7 +52,7 @@ class TclCommandGeoUnion(TclCommand):
|
||||
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(obj_name))
|
||||
except:
|
||||
except Exception:
|
||||
return "Could not retrieve object: %s" % obj_name
|
||||
if obj is None:
|
||||
return "Object not found: %s" % obj_name
|
||||
|
||||
@@ -75,7 +75,7 @@ class TclCommandMillSlots(TclCommandSignaled):
|
||||
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(name))
|
||||
except:
|
||||
except Exception:
|
||||
obj = None
|
||||
self.raise_tcl_error("Could not retrieve object: %s" % name)
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ class TclCommandMirror(TclCommandSignaled):
|
||||
# Get source object.
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(name))
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return "Could not retrieve object: %s" % name
|
||||
|
||||
if obj is None:
|
||||
@@ -78,7 +78,7 @@ class TclCommandMirror(TclCommandSignaled):
|
||||
if 'box' in args:
|
||||
try:
|
||||
box = self.app.collection.get_by_name(args['box'])
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return "Could not retrieve object box: %s" % args['box']
|
||||
|
||||
if box is None:
|
||||
|
||||
@@ -80,7 +80,7 @@ class TclCommandPanelize(TclCommand):
|
||||
boxname = args['box']
|
||||
try:
|
||||
box = self.app.collection.get_by_name(boxname)
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return "Could not retrieve object: %s" % name
|
||||
else:
|
||||
box = obj
|
||||
|
||||
@@ -57,7 +57,7 @@ class TclCommandSubtractPoly(TclCommandSignaled):
|
||||
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(obj_name))
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return "Could not retrieve object: %s" % obj_name
|
||||
if obj is None:
|
||||
return "Object not found: %s" % obj_name
|
||||
|
||||
@@ -70,8 +70,9 @@ class TclCommandSubtractRectangle(TclCommandSignaled):
|
||||
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(obj_name))
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return "Could not retrieve object: %s" % obj_name
|
||||
|
||||
if obj is None:
|
||||
return "Object not found: %s" % obj_name
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ class TclCommandWriteGCode(TclCommandSignaled):
|
||||
|
||||
try:
|
||||
obj = self.app.collection.get_by_name(str(obj_name))
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
if muted == 0:
|
||||
return "Could not retrieve object: %s" % obj_name
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user