adding try catches

to the DynamicSwordConverter