diff options
| author | AAGaming <aagaming@riseup.net> | 2024-06-13 15:26:23 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-06-13 15:26:23 -0400 |
| commit | 1de8c5915bf126c9fce56e5e3f190e00372b4aa3 (patch) | |
| tree | 6b1138bc03099d9b92eaa79ea85298b8c6a4e326 /backend | |
| parent | 4f92276147feb92fa95a054d50abbcc7635c2d88 (diff) | |
| download | decky-loader-1de8c5915bf126c9fce56e5e3f190e00372b4aa3.tar.gz decky-loader-1de8c5915bf126c9fce56e5e3f190e00372b4aa3.zip | |
the rest of f11e34a (from 3a83fa8)
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/decky_loader/loader.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/decky_loader/loader.py b/backend/decky_loader/loader.py index 9bca7af7..2ebbecd9 100644 --- a/backend/decky_loader/loader.py +++ b/backend/decky_loader/loader.py @@ -3,8 +3,8 @@ from asyncio import AbstractEventLoop, Queue, sleep from logging import getLogger from os import listdir, path from pathlib import Path -from traceback import print_exc -from typing import Any, Tuple +from traceback import print_exc, format_exc +from typing import Any, Tuple, Dict, cast from aiohttp import web from os.path import exists @@ -38,7 +38,7 @@ class FileChangeHandler(RegexMatchingEventHandler): self.queue.put_nowait((path.join(self.plugin_path, plugin_dir, "main.py"), plugin_dir, True)) def on_created(self, event: DirCreatedEvent | FileCreatedEvent): - src_path = event.src_path + src_path = cast(str, event.src_path) #type: ignore # this is the correct type for this is in later versions of watchdog if "__pycache__" in src_path: return @@ -52,7 +52,7 @@ class FileChangeHandler(RegexMatchingEventHandler): self.maybe_reload(src_path) def on_modified(self, event: DirModifiedEvent | FileModifiedEvent): - src_path = event.src_path + src_path = cast(str, event.src_path) # type: ignore if "__pycache__" in src_path: return |
