MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / _check_session

Method _check_session

scratchattach/site/classroom.py:215–218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213 return textlist
214
215 def _check_session(self) -> None:
216 if self._session is None:
217 raise exceptions.Unauthenticated(
218 f"Classroom {self} has no associated session. Use session.connect_classroom() instead of sa.get_classroom()")
219
220 def set_thumbnail(self, thumbnail: bytes) -> None:
221 self._check_session()

Callers 9

set_thumbnailMethod · 0.95
set_descriptionMethod · 0.95
set_working_onMethod · 0.95
set_titleMethod · 0.95
add_studioMethod · 0.95
reopenMethod · 0.95
closeMethod · 0.95
generate_signup_linkMethod · 0.95
activityMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected