diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-10-20 15:23:37 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-10-20 15:24:02 +0200 |
commit | 12fda23184240f75553a806f33466074a8a433e6 (patch) | |
tree | 0cba53a4e291433a0630a61919748599807de1ca | |
parent | a35d7d6034947bcb453fe0b4132769f5688a9c84 (diff) |
create-remote-repo: print proper error message on missing remote-configs
instead of printing the exception to the console.
-rw-r--r-- | gbp/scripts/create_remote_repo.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/scripts/create_remote_repo.py b/gbp/scripts/create_remote_repo.py index ed8a8720..e76ba3b6 100644 --- a/gbp/scripts/create_remote_repo.py +++ b/gbp/scripts/create_remote_repo.py @@ -27,6 +27,7 @@ import subprocess import tty import termios import re +from six.moves import configparser from gbp.deb.changelog import ChangeLog, NoChangeLogError from gbp.command_wrappers import (CommandExecFailed, GitCommand) @@ -209,7 +210,7 @@ def build_parser(name, sections=[]): usage='%prog [options] - ' 'create a remote repository', sections=sections) - except GbpError as err: + except (GbpError, configparser.NoSectionError) as err: gbp.log.err(err) return None |