about summary refs log tree commit diff stats
path: root/ranger/api/commands.py
diff options
context:
space:
mode:
authorstepshal <nessento@openmailbox.org>2016-06-22 00:01:38 +0700
committerstepshal <nessento@openmailbox.org>2016-06-22 00:01:38 +0700
commitbedfed3db77ecaafdb86e9e4847c7bb6ddc2563d (patch)
tree274a6e10436c085ac8421b53d7930761b6a08f60 /ranger/api/commands.py
parent5348e120aa6d39604b2426577f84669b9ce0aa24 (diff)
downloadranger-bedfed3db77ecaafdb86e9e4847c7bb6ddc2563d.tar.gz
Use 'except Exception:' instead of 'except:'
Diffstat (limited to 'ranger/api/commands.py')
-rw-r--r--ranger/api/commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index 6a9abe65..9b8ec7d5 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -31,7 +31,7 @@ class CommandContainer(object):
             cmd._line = full_command
             self.commands[name] = cmd
 
-        except:
+        except Exception:
             pass
 
     def load_commands_from_module(self, module):
@@ -394,13 +394,13 @@ class FunctionCommand(Command):
             value = arg if (equal_sign is -1) else arg[equal_sign + 1:]
             try:
                 value = int(value)
-            except:
+            except Exception:
                 if value in ('True', 'False'):
                     value = (value == 'True')
                 else:
                     try:
                         value = float(value)
-                    except:
+                    except Exception:
                         pass
 
             if equal_sign == -1: