Refunds for Refundable Tickets Only
I checked the legal notice of Royal Air Maroc. The pdf of the notice can be downloaded here, enjoy the read.:)
The conditions to get a refund depend on your ticket fare. If you bought a refundable ticket then you can get a refund. If not you can't. This is very common amongst airlines: they don't care the reason for your cancellation, they just check the fare.
Having said this I did not find anything regarding cancellation on the grounds of the destination country currently being considered "not safe" for tourist. You could assume that if things escalate, the airline itself will refuse to fly passengers there, and wait for them to cancel the flight. At which point you would get a refund as per the legal notice. Or you could (read: should) call the airline and ask them.
The legal notice says that non-refundable tickets might be refunded in case of impossibility of travelling due to Force Majeure:
Art. III, Par. 1 (e):
If a Passenger possesses a Ticket, as described in paragraph (d) above [partially or non-refundable tickets], which they have not used and if it is impossible for them to travel for reasons of Force Majeure, as defined in Article I, the Carrier shall credit the Passenger for the amount of their non-refundable Ticket, for a subsequent journey and subject to reasonable administrative fees, provided that the Passenger informs the Carrier as soon as possible prior to the date of the light and provides proof of such instance of Force Majeure.
The definition of Force Majeure provided in the legal notice is:
means circumstances that are external to the party citing them and that are abnormal and unpredictable, the consequences of which could not have been avoided despite all the care and attention exercised.
I fear this is typical legalese meaning everything and nothing at the same time. Sounds to me like bottom line is that the airline reserves the right to decide what Force Majeure is, and what it's not.
In your specific case I think it would be possible for them to argue that since it's safe for their crew to fly, it's safe for you too. IMHO force Majeure would be an illness, sudden death, or such circumstances which you really cannot predict and definitely disallow you to travel.