mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
chore: pyupgrade --py38-plus
This commit is contained in:
parent
45f0b8809b
commit
34b449f27f
4 changed files with 14 additions and 25 deletions
|
@ -176,7 +176,7 @@ class ParallelHTTPSServer(ParallelHTTPServer):
|
|||
if name == "certificate_authority" and not filename:
|
||||
continue
|
||||
try:
|
||||
open(filename, "r").close()
|
||||
open(filename).close()
|
||||
except OSError as e:
|
||||
raise RuntimeError(
|
||||
"Invalid %s value for option %r in section %r in %s: %r "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue