Remove unimplemented methods on service model

During the migration from the model inhereting from a `dict` to being a
plain object it was useful to have these exceptions raised for quicker
debugging.

Now that all the code which relied on these methods has gone it’s OK
to remove them (attempts to call them will fall through to Python’s
native exception handling).
This commit is contained in:
Chris Hill-Scott
2018-10-30 14:48:44 +00:00
parent 67534f838d
commit dda37b6538

View File

@@ -47,16 +47,6 @@ class Service():
return self._dict[attr]
raise AttributeError('`{}` is not a service attribute'.format(attr))
def __getitem__(self, attr):
raise NotImplementedError(
'Use current_service.{} instead of current_service[\'{}\']'.format(attr, attr)
)
def get(self, attr, default=None):
raise NotImplementedError(
'Use current_service.{} instead of current_service.get(\'{}\')'.format(attr, attr)
)
@property
def trial_mode(self):
return self._dict['restricted']