Skip to content

Commit 7dd9d81

Browse files
nrfcredstore: Fix delete response unhandled error (#18)
When deleting a sectag, the tool returned an unhandled error even though the operation was successful. --------- Signed-off-by: Pascal Hernandez <pascal.hernandez@nordicsemi.no>
1 parent 68deda4 commit 7dd9d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nrfcredstore/credstore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, tag: int, type: int, sha: str):
2727
self.sha = sha
2828

2929
def is_ok(response_lines):
30-
return len(response_lines) == 0
30+
return not any("ERROR" in line for line in response_lines)
3131

3232
class CredStore:
3333
def __init__(self, at_client):

0 commit comments

Comments
 (0)