Skip to content

Commit

Permalink
Fix type mismatch of missing remote checks file
Browse files Browse the repository at this point in the history
  • Loading branch information
George V. Kouryachy (Fr. Br. George) committed Nov 5, 2024
1 parent fe55741 commit 867dbfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hworker/make/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def get_solution(hw: Homework) -> Solution:
if need_screenreplay():
content = screenplay_all(content)
try:
remote_content = loads(hw.content.get(f"{get_check_name()}/{get_remote_name()}", b"").decode("utf-8"))
remote_file = hw.content.get(f"{get_check_name()}/{get_remote_name()}", None)
remote_content = loads(remote_file.content.decode("utf-8")) if remote_file else {}
except tomllib.TOMLDecodeError:
remote_content = {}
get_logger(__name__).warning(f"Incorrect remote content at {hw.ID} homework")
Expand Down

0 comments on commit 867dbfd

Please sign in to comment.