Catch specific exception for TargetNotSupported

pull/3355/head
Sarah Marsh 2016-12-07 18:05:29 -06:00
parent dc864132ab
commit ab23c00b08
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import re
import sys
from tools.targets import TARGET_MAP
from tools.export.exporters import Exporter
from tools.export.exporters import Exporter, TargetNotSupportedException
import json
from tools.export.cmsis import DeviceCMSIS
from multiprocessing import cpu_count
@ -108,7 +108,7 @@ class IAR(Exporter):
try:
debugger = DeviceCMSIS(self.target).debug.replace('-','').upper()
except:
except TargetNotSupportedException:
debugger = "CMSISDAP"
ctx = {