Raise NotImplementedError in the base archivator

Use an exception for not implemented methods which is suitable to be
used in such cases.

Change-Id: Ibd3126d55ef8986ee431d61e76bfe89453891f67
This commit is contained in:
Ilya Kharin 2016-08-22 00:05:42 +03:00
parent 0eac2208f7
commit 32fd88faa1

View File

@ -35,10 +35,10 @@ class Base(object):
return name
def backup(self):
raise NotImplemented
raise NotImplementedError
def restore(self):
raise NotImplemented
raise NotImplementedError
def pre_restore_check(self):
pass