Skip to content

Commit ab23c00

Browse files
committed
Catch specific exception for TargetNotSupported
1 parent dc86413 commit ab23c00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/export/iar/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import sys
88

99
from tools.targets import TARGET_MAP
10-
from tools.export.exporters import Exporter
10+
from tools.export.exporters import Exporter, TargetNotSupportedException
1111
import json
1212
from tools.export.cmsis import DeviceCMSIS
1313
from multiprocessing import cpu_count
@@ -108,7 +108,7 @@ def generate(self):
108108

109109
try:
110110
debugger = DeviceCMSIS(self.target).debug.replace('-','').upper()
111-
except:
111+
except TargetNotSupportedException:
112112
debugger = "CMSISDAP"
113113

114114
ctx = {

0 commit comments

Comments
 (0)