infinite loop problem with empty redis db in scan_iter