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 configparser
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)
577 try: 577 try:
578 self.autostash |= self.repo.config_reader().get_value( 578 self.autostash |= self.repo.config_reader().get_value(
579 'phab', 'autostash') 579 'phab', 'autostash')
580 except configparser.NoOptionError: 580 except (configparser.NoOptionError, configparser.NoSectionError):
581 pass 581 pass
582 582
583 # Try to guess the task from branch name 583 # Try to guess the task from branch name