From: Christian Herdtweck Date: Thu, 12 Nov 2020 14:00:49 +0000 (+0100) Subject: Remove duplicate test. X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=8c0d85b469e68d65aa4eb7e078b44ff45d62a485;p=python-delta-tar Remove duplicate test. The exact same thing is tested 20 lines earlier. --- diff --git a/deltatar/tarfile.py b/deltatar/tarfile.py index 4a3dba3..f7a53b2 100644 --- a/deltatar/tarfile.py +++ b/deltatar/tarfile.py @@ -2764,14 +2764,6 @@ class TarFile(object): self.fileobj.fileobj.close() try: - if not self.new_volume_handler or\ - not callable(self.new_volume_handler): - - # complain - raise Exception("We need to create a new volume and " - "you didn't supply a " - "new_volume_handler") - self.new_volume_handler(self, self.base_name, self.volume_number) except Exception: