For some reason, /srv/mediawiki-staging was in a dirty state on tin.eqiad.wmnet:
-rw-rw-r-- 1 thcipriani wikidev 4180 Feb 12 17:19 scap/plugins/clean.py
--- a/scap/plugins/clean.py +++ b/scap/plugins/clean.py @@ -97,7 +97,10 @@ class Clean(main.AbstractSync): def _maybe_delete(self, path): if os.path.exists(path): - shutil.rmtree(path) + if os.path.isdir(path): + shutil.rmtree(path) + else: + os.remove(path) else: self.get_logger().info( 'Unable to delete %s, already missing', path)