Permalink
Browse files

Merge pull request #4 from stdk/feature

DiffCommand.get_user_command refactored.
  • Loading branch information...
2 parents 15e1c37 + d65e1f8 commit f213b28c2f31d148194eb8d9fb4bdbbf899e9364 Aleksandr Gornostal committed Jun 11, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 Modific.py
View
@@ -186,10 +186,7 @@ def diff_done(self, result):
pass
def get_user_command(self, vcs_name):
- try:
- return dict(settings.get('vcs'))[vcs_name]
- except:
- return False
+ return dict(settings.get('vcs')).get(vcs_name,False)
def git_diff_command(self, file_name):
return [self.get_user_command('git') or 'git', 'diff', '--no-color', '--', file_name]

0 comments on commit f213b28

Please sign in to comment.