Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: project.py
- Revision:
- 41:2a77626a4c21
- Parent:
- 40:7d3fa6b99b2b
- Child:
- 43:2a7da56ebd24
--- a/project.py Tue Oct 10 16:56:30 2017 -0500
+++ b/project.py Wed Oct 25 14:46:50 2017 -0500
@@ -20,6 +20,7 @@
from tools.utils import argparse_force_lowercase_type
from tools.utils import argparse_force_uppercase_type
from tools.utils import print_large_string
+from tools.utils import NotSupportedException
from tools.options import extract_profile, list_profiles, extract_mcus
from tools.build_profiles import find_targets_json, find_build_profile, get_toolchain_profile
from tools.toolchains import mbedToolchain
@@ -287,11 +288,13 @@
profile = extract_profile(parser, options, toolchain_name, fallback="debug")
if options.clean:
rmtree(BUILD_DIR)
- export(mcu, options.ide, build=options.build,
- src=options.source_dir, macros=options.macros,
- project_id=options.program, zip_proj=zip_proj,
- build_profile=profile, app_config=options.app_config)
-
+ try:
+ export(mcu, options.ide, build=options.build,
+ src=options.source_dir, macros=options.macros,
+ project_id=options.program, zip_proj=zip_proj,
+ build_profile=profile, app_config=options.app_config)
+ except NotSupportedException as exc:
+ print "[ERROR] %s" % str(exc)
if __name__ == "__main__":
main()
