Skip to content

Commit

Permalink
Merge branch 'master' into feature/1783833/godeps_plugin_spread
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiusens committed Aug 8, 2018
2 parents 77fb636 + 1af1ae5 commit a49331b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 8 additions & 2 deletions snapcraft/cli/_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _handle_trace_output(
click.echo(trace_file_msg_tmpl.format(trace_filepath))


def _is_send_to_sentry() -> bool:
def _is_send_to_sentry() -> bool: # noqa: C901
# Check the environment to see if we should allow for silent reporting
if distutils.util.strtobool(os.getenv("SNAPCRAFT_ENABLE_SILENT_REPORT", "n")) == 1:
click.echo(_MSG_SILENT_REPORT)
Expand All @@ -181,7 +181,13 @@ def _is_send_to_sentry() -> bool:
# Either ALWAYS has not been selected in a previous run or the
# configuration for where that value is stored cannot be read, so
# resort to prompting.
response = _prompt_sentry()
try:
response = _prompt_sentry()
except click.exceptions.Abort:
# This was most likely triggered by a KeyboardInterrupt so
# adding a new line makes things look nice.
print()
return False
if response in _YES_VALUES:
return True
elif response in _NO_VALUES:
Expand Down
3 changes: 0 additions & 3 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ backends:
lxd:
systems:
- ubuntu-16.04
- ubuntu-17.10
- ubuntu-18.04
linode:
key: "$(HOST: echo $SPREAD_LINODE_KEY)"
Expand All @@ -30,8 +29,6 @@ backends:
workers: 2
- ubuntu-16.04-64:
workers: 2
- ubuntu-17.10-64:
workers: 2
- ubuntu-18.04-64:
workers: 2

Expand Down

0 comments on commit a49331b

Please sign in to comment.