Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

local_timezone: gracefully handle retrieval errors on Darwin#792

Open
tpwrules wants to merge 1 commit intopython-pendulum:master from
tpwrules:darwin-error-handling
Open

local_timezone: gracefully handle retrieval errors on Darwin #792
tpwrules wants to merge 1 commit intopython-pendulum:master from
tpwrules:darwin-error-handling

Conversation

@tpwrules
Copy link

@tpwrules tpwrules commented Jan 6, 2024

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.

Copy link

codspeed-hq bot commented Jan 9, 2024

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.
Copy link
Author

tpwrules commented Jan 9, 2024

Fixed formatting.

@Secrus Secrus added this to the Pendulum 3.2 milestone Apr 23, 2025
Copy link
Author

Still interested in getting this merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

Pendulum 3.3

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /