Exceptions#

This section documents all exceptions that pronotepy intentionally raises. All of them extend the PronoteAPIError exception.


exception pronotepy.PronoteAPIError(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Base exception for any pronote api errors

exception pronotepy.CryptoError(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Exception for known errors in the cryptography.

exception pronotepy.ExpiredObject(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Raised when pronote returns error 22. (unknown object reference)

exception pronotepy.ChildNotFound(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Child with this name was not found.

exception pronotepy.DataError#

Base exception for any errors made by creating or manipulating data classes.

exception pronotepy.ParsingError(message: str, json_dict: dict, path: Tuple[str, ...])#

Bad json

exception pronotepy.ICalExportError(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Error while exporting ICal. Pronote did not return token

exception pronotepy.DateParsingError(message: str, date_string: str)#

Bad date string

exception pronotepy.ENTLoginError(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

Error while logging in with an ENT

exception pronotepy.UnsupportedOperation(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

The PRONOTE server does not have the functionality

exception pronotepy.DiscussionClosed(*args: object, pronote_error_code: Optional[int] = None, pronote_error_msg: Optional[str] = None)#

The discussion is closed