The !trap response sentence should raise Python exception. We're dealing with various Mikrotik devices and all the commands are not equally available on all the devices. Instead of crashing with an error Python exception should be raised so it could be handled in the calling code.
There likely should be hierarchy of exception classes such as MikrotikError and one of it's descendants could be MikrotikNoSuchCommandPrefixError
laurivosandi@ec4b0a3#diff-5de739d31a66af311095123847fc75aeb35a6a373b3db7e58beb50c9b5ecb495R141
The
!trapresponse sentence should raise Python exception. We're dealing with various Mikrotik devices and all the commands are not equally available on all the devices. Instead of crashing with an error Python exception should be raised so it could be handled in the calling code.There likely should be hierarchy of exception classes such as
MikrotikErrorand one of it's descendants could beMikrotikNoSuchCommandPrefixErrorlaurivosandi@ec4b0a3#diff-5de739d31a66af311095123847fc75aeb35a6a373b3db7e58beb50c9b5ecb495R141