Add support for Join sets where the parity protects the split files
[rarslave2.git] / PAR2Set / Base.py
index 599827e..5ef2665 100644 (file)
@@ -185,10 +185,11 @@ class Base(object):
             # Delete the file
             try:
                 os.remove(fullname)
-                print 'rm', fullname
-                logging.debug('Deleting: %s' % fullname)
             except OSError:
                 logging.error('Failed to delete: %s' % fullname)
+            else:
+                print 'rm', fullname
+                logging.debug('Deleting: %s' % fullname)
 
     ############################################################################