Although it's old code, please catch `err` here too