Skip to content

Adjust python 3 warning text and behaviour#900

Merged
mark-edgeworth merged 1 commit intomasterfrom
btool-47_python3_warning
Jun 19, 2019
Merged

Adjust python 3 warning text and behaviour#900
mark-edgeworth merged 1 commit intomasterfrom
btool-47_python3_warning

Conversation

@mark-edgeworth
Copy link
Copy Markdown
Collaborator

Since python 3 compatibility is not yet complete I've adjusted the warning message so that it no longer mentions the mbed-os version. Also the message is only printed as a warning once at the start. Previously it appeared again in a slightly different form if mbed CLI threw any exception.

Copy link
Copy Markdown
Collaborator

@madchutney madchutney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

if very_verbose:
traceback.print_exc(file=sys.stdout)
error("Unknown Error: %s" % e, 255)
finally:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a strange thing to do in the first case, definitely good to remove it as it was generated even if there weren't any exceptions.

@mark-edgeworth mark-edgeworth merged commit 15886f8 into master Jun 19, 2019
@mark-edgeworth mark-edgeworth deleted the btool-47_python3_warning branch June 19, 2019 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants