Project

Profile

Help

Refactor #921

closed

Pulp importer config should use TypeError instead of ValueError where appropriate

Added by cduryee about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

The Pulp importer config currently raises a 'ValueError' for some exceptions that should instead be 'TypeError'. For example, if the SSL CA certificate should be a string but is something else, Pulp will raise a ValueError.

It looks like there are eight methods in importer_config.py that need updating.

QE note: I don't think there is anything to test for this aside from no-break regression.

Also available in: Atom PDF