Hi there,
I think this is related to some of the other outstanding reported bugs, but certain calls (anything to do with collections) is causing an "Unknown error from pronote: 3 | Accès refusé" error. Below some code, with comments on calls that are successful and those that cause the above error:
if client.logged_in:
nom_utilisateur = client.info.name
print(f'Logged in as {nom_utilisateur}') # this works
periods = client.periods
#print(client.current_period.name) # this crashes
print(client.last_connection) # this works
for period in periods:
print(period.name) # this works
print(period.start) # this works
# print(len(period.grades)) # this crashes
#for grade in period.grades: # iterate over all the grades
#print(grade.grade) # this crashes
Let me know if you need any further details.