Repository navigation
Conversation
- Find-DNS-NGSIEM/app.py: `if redor_emails` -> `rededor_emails`. A variavel correta e' `rededor_emails` (linha acima); com o nome errado o codigo lanca NameError sempre que o whois do sistema acha e-mails no fallback, caindo no except e retornando "N/A". - webhook-to-whatsapp.py: `if e.response:` -> `if e.response is not None:`. Um objeto Response de erro (4xx/5xx) e' falsy no requests, entao o detalhe do erro nunca era impresso. - crowd-to-telegram.py: escapa os '=' do separador. O '=' e' reservado no MarkdownV2 (esta' na propria lista escape_chars do script), entao os 25 '=' faziam a Bot API rejeitar a mensagem com HTTP 400. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Três correções pontuais, uma linha cada, todas verificadas lendo o código. Sem mudança de estrutura.
1.
Find-DNS-NGSIEM/app.py—NameErrorget_system_whois_emailmontarededor_emailse na linha seguinte testaif redor_emails:(sem ode). Toda vez que o whois do sistema encontra e-mails no fallback, isso levantaNameError, cai noexcepte retorna"N/A". Um caractere.2.
webhook-to-whatsapp.py— detalhe do erro nunca apareciaif e.response:— umResponsede erro (4xx/5xx) é falsy norequests, então oprintdo corpo do erro nunca rodava. Trocado porif e.response is not None:.3.
crowdstrike-integrations/crowd-to-telegram.py— mensagem rejeitada pelo TelegramO separador
f"*{'='*25}*"insere 25=crus numa mensagem enviada comparse_mode=MarkdownV2. O=é reservado no MarkdownV2 (ele está inclusive na sua própria listaescape_chars), então a Bot API rejeita com HTTP 400 e o alerta não chega. Passei os=peloescape_markdownque o script já define.Rodei
python -m py_compilenos três. Se preferir dividir em PRs separados por script, me avisa que eu separo.🤖 Generated with Claude Code