Despite the ban, Morocco managed to help several countries including France, the UK, and the US to repatriate stranded nationals.

Morocco Extends Suspension of International Air Travel to May 31
Royal Air Maroc flight