diff --git a/bin/swift-recon-cron b/bin/swift-recon-cron index 3c939a1b22..709bd9d5ec 100755 --- a/bin/swift-recon-cron +++ b/bin/swift-recon-cron @@ -29,6 +29,8 @@ def get_async_count(device_dir, logger): async_count = 0 for i in os.listdir(device_dir): device = os.path.join(device_dir, i) + if not os.path.isdir(device): + continue for asyncdir in os.listdir(device): # skip stuff like "accounts", "containers", etc. if not (asyncdir == ASYNCDIR_BASE or