Skip to content

Commit b7dd40e

Browse files
3nprobroshii
andauthored
use .get for accessing optional config entry in onionmc
Co-authored-by: roshii <6266997+roshii@users.noreply.github.com>
1 parent a179083 commit b7dd40e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jmdaemon/onionmc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def __init__(self,
641641
self.serverport = self.hostid
642642
self.tor_control_host = configdata["tor_control_host"]
643643
self.tor_control_port = configdata["tor_control_port"]
644-
self.tor_control_password = configdata["tor_control_password"]
644+
self.tor_control_password = configdata.get("tor_control_password")
645645
self.onion_serving_host = configdata["onion_serving_host"]
646646
self.onion_serving = configdata["serving"]
647647
if self.onion_serving:

0 commit comments

Comments
 (0)