Ticket #13 (new task)
data source layer should have useful exceptions
| Reported by: | marienz | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | pkgcore | Version: | |
| Keywords: | Cc: |
Description
Currently an attempt to open a local_source with a bogus path lets the IOError reach calling code. There should be some data_source specific exceptions here so calling code can deal with various kinds of sources sensibly (checking for ENOENT probably does not make sense for networked data sources). Todo:
- come up with a good set of exceptions
- make the existing sources raise them and not let IOError/OSError through
- remove the ugly hack I just added to repo_objs.py
Change History
Note: See
TracTickets for help on using
tickets.
