Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • P plom
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 621
    • Issues 621
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • plom
  • plom
  • Issues
  • #2150
Closed
Open
Created May 21, 2022 by Colin Macdonald@cbm755Owner

build_papers: fails with KeyError if not enough rows in the database

  1. Add classlit and spec but don't make db.
  2. call build_papers. Note: not directly possible via command line tools at the moment as it will automatically build DB first.
Traceback (most recent call last):
  File "/home/cbm/src/plom/plom.git/plom/manager/manager.py", line 724, in buildPapers
    build_papers(
  File "/home/cbm/src/plom/plom.git/plom/create/start_messenger.py", line 48, in wrapped
    return f(*args, **kwargs)
  File "/home/cbm/src/plom/plom.git/plom/create/buildDatabaseAndPapers.py", line 104, in build_papers
    build_papers_backend(
  File "/home/cbm/src/plom/plom.git/plom/create/buildNamedPDF.py", line 111, in build_papers_backend
    question_version_map = global_question_version_map[paper_index]
KeyError: 1

In this case the qvmap is empty. Should be an error but likely could be a better error than this.

Assignee
Assign to
Time tracking