Skip to content

Commit c697c8f

Browse files
committed
Don't print stacktrace when parsing IA for keyring fails.
A KNXFormatException also happens when, e.g., running a device scan and using only the area or area.line part of the topology. In such cases, we don't need a keyring in the first place.
1 parent edc391e commit c697c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/io/calimero/gui/ConnectArguments.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ public List<String> getArgs(final boolean useRemoteAddressOption)
133133
KeyringTab.keyring().map(Keyring::devices).filter(devices -> devices.containsKey(device))
134134
.ifPresent(__ -> KeyringTab.keyringPassword());
135135
}
136-
catch (final KNXFormatException e) {
137-
e.printStackTrace();
136+
catch (final KNXFormatException ok) {
137+
// if we didn't get a valid IA, keyring doesn't matter
138138
}
139139
}
140140

0 commit comments

Comments
 (0)