FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

local_timezone: gracefully handle retrieval errors on Darwin by tpwrules · Pull Request #792 · python-pendulum/pendulum · GitHub

local_timezone: gracefully handle retrieval errors on Darwin - #792

Open
tpwrules wants to merge 1 commit into
python-pendulum:masterfrom
tpwrules:darwin-error-handling
Open

local_timezone: gracefully handle retrieval errors on Darwin#792
tpwrules wants to merge 1 commit into
python-pendulum:masterfrom
tpwrules:darwin-error-handling

Conversation

tpwrules commented Jan 6, 2024

Copy link
Copy Markdown

In some sandbox environments, the program may not have permission to access /etc/localtime or it may not exist.

Catch any exceptions accessing and parsing its value and return UTC by default to avoid crashing the program.

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

codspeed-hq Bot commented Jan 9, 2024

Copy link
Copy Markdown

CodSpeed Performance Report

Merging #792 will not alter performance

Comparing tpwrules:darwin-error-handling (a4d98ce) with master (3e3fec6)

Summary

✅ 1 untouched benchmarks

In some sandbox environments, the program may not have
permission to access /etc/localtime or it may not exist.

Catch any exceptions accessing and parsing its value and return UTC by
default to avoid crashing the program.
tpwrules force-pushed the darwin-error-handling branch from a4d98ce to ba57bed Compare January 9, 2024 16:57

tpwrules commented Jan 9, 2024

Copy link
Copy Markdown
Author

Fixed formatting.

Secrus added this to the Pendulum 3.2 milestone Apr 23, 2025

Copy link
Copy Markdown
Author

Still interested in getting this merged.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL