Skip to content

Commit

Permalink
log vcard parsing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed May 29, 2024
1 parent d10ddbe commit 49c9efb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deltachat-ios/DC/DcContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,11 @@ public class DcContext {

public func parseVcard(path: String) -> DcVcardContact? {
if let data = DcAccounts.shared.blockingCall(method: "parse_vcard", params: [path as AnyObject]) {
return try? JSONDecoder().decode(DcVcardContactResult.self, from: data).result
do {
return try JSONDecoder().decode(DcVcardContact.self, from: data)
} catch {
logger.error("cannot parse vcard: \(error)")
}
}
return nil
}
Expand Down

0 comments on commit 49c9efb

Please sign in to comment.