Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time.CLOCK_BOOTTIME not available on older versions of Python #10

Open
e4t opened this issue Sep 8, 2022 · 0 comments · May be fixed by #11
Open

time.CLOCK_BOOTTIME not available on older versions of Python #10

e4t opened this issue Sep 8, 2022 · 0 comments · May be fixed by #11

Comments

@e4t
Copy link

e4t commented Sep 8, 2022

time.CLOCK_BOOTTIME has been introduced with Python 3.7 only. SLE 15 SP4 & Leap 15.4 still only provide version 3.6.
Without proper handling an attribute error will be generated which will immediately terminate the session (while the daemon keeps running).

e4t added a commit to e4t/oauth2-clientd that referenced this issue Sep 8, 2022
time.CLOCK_BOOTTIME has only been introduced to the `time` module
with Python 3.7. To support older versions, provide a fallback to
time.CLOCK_MONOTONIC.

Fixes jeffmahoney#10

Signed-off-by: Egbert Eich <eich@suse.com>
@e4t e4t linked a pull request Sep 8, 2022 that will close this issue
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 a pull request may close this issue.

1 participant