From 424da8b573b1fac05387149944abe7fa6b8dec4a Mon Sep 17 00:00:00 2001
From: ZyX <kp-pav@ya.ru>
Date: Sat, 5 Jan 2013 18:14:17 +0400
Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20raise=20an=20exception=20when?=
 =?UTF-8?q?=20encountered=20untracked=20file?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 powerline/lib/vcs/git.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/powerline/lib/vcs/git.py b/powerline/lib/vcs/git.py
index c5c9bdfd..8c3ab9c2 100644
--- a/powerline/lib/vcs/git.py
+++ b/powerline/lib/vcs/git.py
@@ -25,7 +25,10 @@ try:
 			(except for merge statuses as they are not supported by libgit2).
 			'''
 			if path:
-				status = self._repo().status_file(path)
+				try:
+					status = self._repo().status_file(path)
+				except KeyError, ValueError:
+					return None
 
 				if status == git.GIT_STATUS_CURRENT:
 					return None