Permalink
Browse files

minor bugfix

  • Loading branch information...
1 parent f567a43 commit decc2ef8efdbbb777a87d2c61b6f5a0f8f424143 Aleksandr Gornostal committed Sep 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Modific.py
View
@@ -208,7 +208,8 @@ def get_working_dir(self):
return os.path.dirname(self._active_file_name())
def is_enabled(self):
- if self._active_file_name():
+ file_name = self._active_file_name()
+ if file_name and os.path.exists(file_name):
return get_vcs(self.get_working_dir())
def get_user_command(self, vcs_name):

0 comments on commit decc2ef

Please sign in to comment.