Skip to content

Commit

Permalink
fix(rpp): linter
Browse files Browse the repository at this point in the history
  • Loading branch information
manucabral committed Nov 10, 2024
1 parent 158873d commit e0f162b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions rpp/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def running(self) -> bool:
stderr=subprocess.PIPE,
shell=True,
text=True,
check=True,
)
out = result.stdout.strip()
return bool(out)
Expand Down
8 changes: 4 additions & 4 deletions rpp/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def __presence_thread(self, presence: Presence) -> None:
except Exception as exc:
self.log.error("Error running %s: %s", presence.name, exc)

def __runtime_thread(self, callback: typing.Callable) -> None:
def __runtime_thread(self, callback: typing.Callable) -> typing.Any:
"""
Run the runtime in a thread.
Expand Down Expand Up @@ -188,8 +188,8 @@ def __runtime_thread(self, callback: typing.Callable) -> None:
"%s stopped because the runtime was closed.", presence.name
)
return callback()
else:
self.log.warning("No callback found.")
self.log.warning("No callback found.")
return None

def download_presence(self, presence_name: str) -> None:
"""
Expand Down Expand Up @@ -360,7 +360,7 @@ def start(self) -> None:
try:
self.run_presences()
if self.web_enabled:
self.run_runtime(None)
self.run_runtime()
while not self.stop_event.is_set():
time.sleep(0.1)
except KeyboardInterrupt:
Expand Down

0 comments on commit e0f162b

Please sign in to comment.