Skip to content

Commit d26f84d

Browse files
committed
fix bug
1 parent 1c84389 commit d26f84d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sonar/branches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def export(self, export_settings: types.ConfigSettings) -> types.ObjectJsonRepr:
240240
loc_distrib = {m.split("=")[0]: int(m.split("=")[1]) for m in lang_distrib.split(";")}
241241
loc_distrib["total"] = self.loc()
242242
data["ncloc"] = loc_distrib
243-
if export_settings["MODE"] == "MIGRATION":
243+
if export_settings.get("MODE", "") == "MIGRATION":
244244
tpissues = self.count_third_party_issues()
245245
issue_data = {"thirdParty": tpissues if len(tpissues) > 0 else 0}
246246
if self.endpoint.version() >= (10, 0, 0):

0 commit comments

Comments
 (0)