Even though airport security is very strong nowadays, commercial flights are still at risk of hijacking. Alternatively, passengers (perhaps mentally distressed) could provoke damage to crew, passengers or infrastructure.
Do commercial aircraft carry personal weapons for their crew to use? This could be either fire arms or non-lethal weapons (like batons, pepper spray, Taser, etc). On the one hand, it makes sense they do carry some form of deterrent. On the other hand, in the wrong hands these weapons could create more danger than if not present. Do we know something about this?
Online I read about planes carrying an axe, but this is not much of a deterrent since it is quite hard to use properly and effectively (I imagine). There is an old discussion here in the US context, which might suggest this is an ongoing debate.
PD: perhaps a firearm shot could affect the fuselage and put the whole aircraft at risk, so non-lethal weapons would make more sense.
PD2: this Q is broader than the suggested duplicates. It is not only about pilots. The existing answer confirms its broader nature.