CentreForDigitalHumanities / CentreForDigitalHumanities/procreg

FAQLists crash and burn without a default FAQList

Open
#55 0 comments 0 reactions 1 assignee Claimed by @miggol View on GitHub
bug
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The current implementation of FAQLists is somewhat WIP. We could fix this with a fixture, but better would be to make a more robust implementation.

For example, FAQLists are currently constructed at load-time, for every question instantiated by the blueprint. FAQs aren't needed before rendering the actual question, so we could postpone construction until then at least. This provides an opportunity to fail gracefully.

Then finally a default fixture with a custom error message if it's not loaded as the cherry on top.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.