summaryrefslogtreecommitdiff
path: root/grc/gui/canvas/block.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/gui/canvas/block.py')
-rw-r--r--grc/gui/canvas/block.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/grc/gui/canvas/block.py b/grc/gui/canvas/block.py
index 33edf988c2..2f0d057d4f 100644
--- a/grc/gui/canvas/block.py
+++ b/grc/gui/canvas/block.py
@@ -368,7 +368,7 @@ class Block(CoreBlock, Drawable):
new_index = (old_index + direction + len(values)) % len(values)
type_param.set_value(values[new_index])
return True
- except:
+ except IndexError:
return False
def port_controller_modify(self, direction):
@@ -394,7 +394,8 @@ class Block(CoreBlock, Drawable):
if value > 0:
param.set_value(value)
changed = True
- except:
+ except ValueError:
+ # Should we be logging something here
pass
return changed