Add some foolproofing to ob_inventory command