Skip to content

Commit

Permalink
fix: should convert screenshot format
Browse files Browse the repository at this point in the history
close #328
  • Loading branch information
NateScarlet committed Jul 5, 2022
1 parent 52c11f5 commit 6dfecac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_derby/infrastructure/client_device_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def screenshot(self, *, max_age: float = 1) -> Image:

cached_time, _ = self._cached_screenshot
if cached_time < dt.datetime.now() - dt.timedelta(seconds=max_age):
new_img = self._c.screenshot()
new_img = self._c.screenshot().convert("RGB")
if template.g.last_screenshot_save_path:
with filetools.atomic_save_path(
template.g.last_screenshot_save_path,
Expand Down

0 comments on commit 6dfecac

Please sign in to comment.