From e777c45071685ba616e81b3c062d244da2e3b29e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 13 Feb 2024 17:50:48 +0200 Subject: [PATCH] Ignore weird parse error [skip cd] --- messagix/js_module_parser.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/messagix/js_module_parser.go b/messagix/js_module_parser.go index 1fb8bdd..24ecc7c 100644 --- a/messagix/js_module_parser.go +++ b/messagix/js_module_parser.go @@ -151,7 +151,9 @@ func (m *ModuleParser) Load(page string) error { err = sharedData.ParseRaw() if err != nil { m.client.Logger.Debug().Str("raw_data", sharedData.Raw).Msg("Errored raw XIGSharedData") - return fmt.Errorf("messagix-moduleparser: failed to parse XIGSharedData raw string into *types.XIGConfigData (%v)", err) + if !authenticated { + return fmt.Errorf("messagix-moduleparser: failed to parse XIGSharedData raw string into *types.XIGConfigData (%v)", err) + } } m.client.Logger.Debug().Any("authenticated", authenticated).Msg("Instagram Authentication Status") if !authenticated {