diff --git a/deluge/plugins/Execute/deluge/plugins/execute/core.py b/deluge/plugins/Execute/deluge/plugins/execute/core.py
index c7824e5f0..9dcd97aaa 100644
--- a/deluge/plugins/Execute/deluge/plugins/execute/core.py
+++ b/deluge/plugins/Execute/deluge/plugins/execute/core.py
@@ -154,7 +154,7 @@ class Core(CorePluginBase):
# Exported RPC methods #
@export
def add_command(self, event, command):
- command_id = hashlib.sha1(str(time.time())).hexdigest()
+ command_id = hashlib.sha1(str(time.time()).encode()).hexdigest()
self.config['commands'].append((command_id, event, command))
self.config.save()
component.get('EventManager').emit(
diff --git a/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui b/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui
index fc02a54a8..e2a5cd507 100644
--- a/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui
+++ b/deluge/plugins/Execute/deluge/plugins/execute/data/execute_prefs.ui
@@ -30,6 +30,7 @@
False
5
12
+ 10