Skip to content
Snippets Groups Projects
Commit cfaa259a authored by Malte L's avatar Malte L Committed by Philipp Hörist
Browse files

[omemo] Fix loading of style.css with python 3.5

parent 2db6d03f
No related branches found
No related tags found
1 merge request!119[omemo] Fix loading of style.css with python 3.5
...@@ -139,7 +139,7 @@ class OmemoPlugin(GajimPlugin): ...@@ -139,7 +139,7 @@ class OmemoPlugin(GajimPlugin):
def _load_css(): def _load_css():
path = Path(__file__).parent / 'gtk' / 'style.css' path = Path(__file__).parent / 'gtk' / 'style.css'
try: try:
with open(path, "r") as file: with path.open("r") as file:
css = file.read() css = file.read()
except Exception as exc: except Exception as exc:
log.error('Error loading css: %s', exc) log.error('Error loading css: %s', exc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment