diff --git a/tools/export/iar/__init__.py b/tools/export/iar/__init__.py index 691ea56d84..ba53322eed 100644 --- a/tools/export/iar/__init__.py +++ b/tools/export/iar/__init__.py @@ -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 = {