diff --git a/buildbot-config/scummsteps.py b/buildbot-config/scummsteps.py index 157f8d4..568b5cb 100644 --- a/buildbot-config/scummsteps.py +++ b/buildbot-config/scummsteps.py @@ -338,7 +338,7 @@ class CleanupSnapshots(steps.BuildStep): try: dir_iter = os.scandir(self.dstpath) - except OSerror as e: + except OSError as e: yield log.addStderr("An exception occurred while scanning the directory: {}\n".format(e)) return util.FAILURE