diff options
author | nfnty <git@nfnty.se> | 2015-10-17 21:53:30 +0200 |
---|---|---|
committer | nfnty <git@nfnty.se> | 2016-02-08 04:43:04 +0100 |
commit | c4abb96c41ed3dd9688f32198d2cd2e8a3320b4e (patch) | |
tree | 7d590905e87febc7fe97075c3033e549e89fd4f9 /ranger | |
parent | 0e6ee82588abd0ff098b2e0cef0bd3ec88569689 (diff) | |
download | ranger-c4abb96c41ed3dd9688f32198d2cd2e8a3320b4e.tar.gz |
VCS: Handle FileNotFoundError during subprocess calls
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/ext/vcs/vcs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py index 8516bd71..9cf84663 100644 --- a/ranger/ext/vcs/vcs.py +++ b/ranger/ext/vcs/vcs.py @@ -129,6 +129,8 @@ class Vcs(object): except subprocess.CalledProcessError: raise VcsError("{0:s} error on {1:s}. Command: {2:s}"\ .format(cmd, path, ' '.join([cmd] + args))) + except FileNotFoundError: + raise VcsError("{0:s} error on {1:s}: File not found".format(cmd, path)) # Generic #--------------------------- |