fix: reject QR token dry-run

This commit is contained in:
2026-09-11 00:13:11 +02:00
committed by Antoine Van Elstraete
parent 145dace289
commit fde8fbe264
2 changed files with 43 additions and 0 deletions

View File

@@ -126,6 +126,8 @@ class PipelineRunner:
:rtype: PipelineRunner
"""
effective_dry_run = settings.app.dry_run if dry_run is None else dry_run
if effective_dry_run and settings.pronote.auth_mode == "qr_token":
raise ValueError("Le mode qr_token n'est pas compatible avec le dry-run.")
persistence_enabled = not effective_dry_run
theoretical_provider = get_theoretical_provider(
settings.app.theoretical_agenda_path,