summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-phab2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-phab b/git-phab
index ce901fc..9978621 100755
--- a/git-phab
+++ b/git-phab
@@ -783,7 +783,7 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri)
with open(fname) as f:
for i, l in enumerate(f):
pass
- except (FileNotFoundError, IsADirectoryError):
+ except (FileNotFoundError, IsADirectoryError, UnicodeDecodeError):
return 0
return i + 1