Use better exception handling #13

Closed
tsimonq2 opened this Issue Sep 18, 2016 · 1 comment

Comments

Projects
None yet
2 participants

Sometimes the user might forget a file, data/yakkety/state/age-policy-dates for example. Instead of throwing FileNotFoundError and just freezing (I can Ctrl + C of course), it should create the file.

Exception handling should be better integrated so this type of error is less likely to ever happen.

Owner

nthykier commented Sep 18, 2016

Hi,

Thanks for the report.

I am surprised to hear that Britney freezes (rather than terminating)?

I see no issue with creating the "dates" file automatically. However, I am concerned with generating the urgencies files as it creates a "silent failure" mode for them (where the intended urgencies do not have an effect).

@nthykier nthykier self-assigned this Sep 18, 2016

nthykier added a commit that referenced this issue Sep 24, 2016

AgePolicy: Create the (new) date file automatically
Closes: Debian/britney2#13
Signed-off-by: Niels Thykier <niels@thykier.net>

@nthykier nthykier closed this in 6de0c34 Oct 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment