summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-05-01 08:56:47 +0100
committerThibault Saunier <thibault.saunier@osg.samsung.com>2017-05-31 15:21:12 -0400
commit6877964ef4482b993430964f8eebec4a78ae7b7c (patch)
tree691c7a1aa5e41685f5a6afe66d1b7f3152aa8a2c
parent937fb36ff5d82358d2038a2a0377e0a4098c6d81 (diff)
git-phab: Handle NoSection exception from configparserHEADmaster
If the user doesn’t have a `phab` section in their configuration, they will hit this exception, spuriously. Signed-off-by: Philip Withnall <withnall@endlessm.com> Differential Revision: https://phabricator.freedesktop.org/D1738
-rwxr-xr-xgit-phab2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-phab b/git-phab
index ee9ff67..c2bd3e4 100755
--- a/git-phab
+++ b/git-phab
@@ -577,7 +577,7 @@ Paste API Token from that page and press <enter>: """ % self.phabricator_uri)
try:
self.autostash |= self.repo.config_reader().get_value(
'phab', 'autostash')
- except configparser.NoOptionError:
+ except (configparser.NoOptionError, configparser.NoSectionError):
pass
# Try to guess the task from branch name