running examples/https.py will throw exceptions like this one:
Traceback (most recent call last):
...
File "<string>", line 10, in __init__
File "/usr/local/lib/python3.9/site-packages/socketify/socketify.py", line 3355, in __post_init__
raise RuntimeError("dh_params_file_name must be a str if specified")
RuntimeError: dh_params_file_name must be a str if specified
Expected behavior
No error should expected when one of the optional parameters missing.
Additional context
AppOptions attributes should probably be defined with None defaults:
Describe the bug
When trying to run
examples/https.py
I had to specify allAppOptions
defaults.To Reproduce
Follow #85 and discover that
AppOptions
require all defaults to be passed explicitly. Namely, without the following arguments:running
examples/https.py
will throw exceptions like this one:Expected behavior
No error should expected when one of the optional parameters missing.
Additional context
AppOptions
attributes should probably be defined withNone
defaults:instead of a tuple (perhaps it's a typo):