Summary

Replace panic() with proper error return in LoadTemplatesWithTags when protocolstate.GetDialersWithId() returns nil. This allows callers to handle the situation gracefully instead of crashing.

Changes

  • Updated LoadTemplatesWithTags signature to return ([]*templates.Template, error)
  • Updated LoadTemplates to match the new signature
  • Updated Store.Load() to handle the error with a warning log
  • Updated internal/runner/lazy.go to propagate the error
  • Updated automaticscan/util.go to propagate the error

Testing

  • go build ./... passes successfully
  • All callers have been updated to handle the new error return

Closes #6674

/claim #6674

Summary by CodeRabbit

  • Bug Fixes
    • Enhanced error handling for template loading operations to prevent unexpected failures and provide clearer error messages to users.

Claim

Total prize pool $200
Total paid $0
Status Pending
Submitted February 22, 2026
Last updated February 22, 2026

Contributors

VI

Viki

@V1ki

100%

Sponsors

PR

ProjectDiscovery

@projectdiscovery

$100
MA

Madhavan Deepak

@Madhavan-Deepak

$100