Skip to content

Commit 97be984

Browse files
committed
Fix issue with exception while checking plugin.
1 parent 530138b commit 97be984

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

myDevices/plugins/manager.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ def convert_to_dict(self, value):
9898

9999
def is_plugin(self, plugin, channel):
100100
"""Returns True if the specified plugin:channel is a valid plugin"""
101-
return plugin + ':' + channel in self.plugins.keys()
101+
try:
102+
return plugin + ':' + channel in self.plugins.keys()
103+
except:
104+
return False
102105

103106
def write_value(self, plugin, channel, value):
104107
"""Write a value to a plugin actuator.

0 commit comments

Comments
 (0)