>I do not believe that San Marino was ever occupied by the French.

A guidebook published in the Republic agrees, saying:
San Marino knew its golden hour when Napoleon Bonaparte came to Italy and passed near the tiny Republic. Impressed by the pride of its people and by their freedom-loving tradition, he declared: "We must preserve San Marino as an example of liberty. He sent Monge, his ambassador and a famous mathematician to Mount Titano, giving him the task to express his friendship to its inhabitants. . . . Napoloeon never changed his mind and in 1805, he received with full honours Antonio Onofri, a Sammarinese messenger who was in Milan to reach a useful amendment of the Commercial Treaty already in force between the Cisalpine Republic and the San Marino Republic.