Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Improve exception handling, add logging and bug fixes #16

Merged
merged 13 commits into from
Jul 6, 2023

Conversation

wjh18
Copy link
Owner

@wjh18 wjh18 commented Jul 6, 2023

Closes #11

  • Various improvements to how exceptions are handled.
  • Added file and stream logging via basic config.
  • A few moderate bug fixes.

wjh18 added 13 commits July 4, 2023 13:33
… them up to main where sys.exit() is called (instead of calling SystemExit directly from within sitemaps module)
…. Allow exceptions to bubble up from keys.py to request.py to main() and call sys.exit() there instead of in modules
…it() is called for invalid URLs in cli input (instead of calling SystemExit directly in its respective module)
…ception handling for key errors and such when accessing JSON response objects
…ception is raised within a task/Coroutine - Specifically KeyringError or InvalidURLError. Fixes an issue with these types of exceptions not being raised properly.
…sts. Basically anything critical guaranteed to fail on every request. Fix a bug with URL validation (URLs with a scheme but no TLD like https://example were not invalidated before requests were made)
…map format isn't chosen. Update a few log lines as well.
…tion stage to avoid hitting the keystore once per URL for sitemap reports that make multiple requests.
…house #15122 and was causing KeyErrors (how metrics are parsed will be changed soon, but this is a temporary QOL fix)
@wjh18 wjh18 merged commit 69c291d into master Jul 6, 2023
@wjh18 wjh18 deleted the improve-exceptions-logging branch July 6, 2023 03:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logging
1 participant