Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

adds try-except for tk imports #98

Merged
merged 4 commits into from
Jun 9, 2021

Conversation

paulypeter
Copy link
Collaborator

improved fix for #88

src/config_generator.py Outdated Show resolved Hide resolved
@sibalzer
Copy link
Owner

sibalzer commented Jun 9, 2021

and #89 must be reverted in src/impfbot.py

@Muehli25
Copy link
Contributor

Muehli25 commented Jun 9, 2021

This works on my setup, even when reverting #89

except tk.TclError:
# most likely no display was found (i. e. running headless)
run_gui = False
if run_gui:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even better than just catching a base exception

@sibalzer sibalzer merged commit 8e6777f into sibalzer:main Jun 9, 2021
@paulypeter paulypeter deleted the dev-fix-tk-import-for-headless branch June 9, 2021 10:41
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.

None yet

3 participants