keys-on-cli
quadrismegistus 4 years ago
parent 210485d96f
commit 483978a184

@ -190,7 +190,7 @@ class Operator(Keymaker):
# try route
if msg_obj.route:
data,route = msg_obj.data, msg_obj.route
if hasattr(self,route) or route not in self.ROUTES:
if not hasattr(self,route) or route not in self.ROUTES:
raise KomradeException(f'Not a valid route!: {route}')
# route it!

Loading…
Cancel
Save