PagerDuty hook AttributeError with Python < 3.10 #886

Closed
opened 2024-06-24 01:20:13 +00:00 by witten · 2 comments
Owner

What I'm trying to do and why

As part of fixing a test deprecation warning, borgmatic 1.8.12 broke the PagerDuty hook when Python < 3.10 is used.

Steps to reproduce

Configure the PagerDuty hook and run a create action.

Actual behavior

AttributeError: module 'datetime' has no attribute 'UTC'

Expected behavior

No error; PagerDuty is pinged.

Other notes / implementation ideas

No response

borgmatic version

1.8.12

borgmatic installation method

pipx install --editable

Borg version

No response

Python version

3.8.15

Database version (if applicable)

No response

Operating system and version

Alpine 3.13

### What I'm trying to do and why As part of fixing a test deprecation warning, borgmatic 1.8.12 broke the PagerDuty hook when Python < 3.10 is used. ### Steps to reproduce Configure the PagerDuty hook and run a `create` action. ### Actual behavior ``` AttributeError: module 'datetime' has no attribute 'UTC' ``` ### Expected behavior No error; PagerDuty is pinged. ### Other notes / implementation ideas _No response_ ### borgmatic version 1.8.12 ### borgmatic installation method pipx install --editable ### Borg version _No response_ ### Python version 3.8.15 ### Database version (if applicable) _No response_ ### Operating system and version Alpine 3.13
witten added the
bug
label 2024-06-24 01:20:20 +00:00
witten changed title from PagerDuty hook errors with Python < 3.10 to PagerDuty hook AttributeError with Python < 3.10 2024-06-24 01:25:00 +00:00
Author
Owner

Fixed in main. Will be part of the next release.

Fixed in main. Will be part of the next release.
Author
Owner

Released in borgmatic 1.8.13!

Released in borgmatic 1.8.13!
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#886
No description provided.