Skip to content

Commit fa684cc

Browse files
committed
Fix mypy error Argument 2 to connect_url has incompatible type Optional[bool]
1 parent 07a1499 commit fa684cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prusa/connect/printer/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def connection_from_config(self, path: str):
365365
config.read(path)
366366

367367
host = config['service::connect']['hostname']
368-
tls = config['service::connect'].getboolean('tls')
368+
tls = config['service::connect'].getboolean('tls', fallback=False)
369369
port = config['service::connect'].getint('port', fallback=0)
370370

371371
server = Printer.connect_url(host, tls, port)

0 commit comments

Comments
 (0)