Skip to content

Commit

Permalink
minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Gornostal committed Sep 2, 2012
1 parent f567a43 commit decc2ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modific.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit decc2ef

Please sign in to comment.