Raise errors when connectors fail

This commit is contained in:
Mouse Reeve
2020-09-30 10:27:40 -07:00
parent 56ebd6e7c0
commit f72d59955e
4 changed files with 14 additions and 4 deletions

View File

@ -9,6 +9,10 @@ from django.db import transaction
from bookwyrm import models
class ConnectorException(Exception):
''' when the connector can't do what was asked '''
class AbstractConnector(ABC):
''' generic book data connector '''