mirror of https://github.com/ARMmbed/mbed-os.git
Catch specific exception for TargetNotSupported
parent
dc864132ab
commit
ab23c00b08
|
@ -7,7 +7,7 @@ import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from tools.targets import TARGET_MAP
|
from tools.targets import TARGET_MAP
|
||||||
from tools.export.exporters import Exporter
|
from tools.export.exporters import Exporter, TargetNotSupportedException
|
||||||
import json
|
import json
|
||||||
from tools.export.cmsis import DeviceCMSIS
|
from tools.export.cmsis import DeviceCMSIS
|
||||||
from multiprocessing import cpu_count
|
from multiprocessing import cpu_count
|
||||||
|
@ -108,7 +108,7 @@ class IAR(Exporter):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
debugger = DeviceCMSIS(self.target).debug.replace('-','').upper()
|
debugger = DeviceCMSIS(self.target).debug.replace('-','').upper()
|
||||||
except:
|
except TargetNotSupportedException:
|
||||||
debugger = "CMSISDAP"
|
debugger = "CMSISDAP"
|
||||||
|
|
||||||
ctx = {
|
ctx = {
|
||||||
|
|
Loading…
Reference in New Issue