Hi! I just upgraded from version 0.4 to the current one and I get the following error on startup (using the same px.ini file as before):
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "...\px.py", line 1652, in <module>
main()
^^^^^^
File "...\px.py", line 1647, in main
parse_config()
^^^^^^^^^^^^^^
File "...\px.py", line 1450, in parse_config
State.wproxy = wproxy.Wproxy(wproxy.MODE_CONFIG_PAC, [pac], debug_print = dprint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\wproxy.py", line 323, in __init__
super().__init__(mode, servers, noproxy, debug_print)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "...\wproxy.py", line 132, in __init__
noproxy, self.noproxy_hosts = parse_noproxy(noproxy)
^^^^^^^^^^^^^^^^^^^^^^
File "...\wproxy.py", line 78, in parse_noproxy
bypasses = [h for h in noproxystr.lower().replace(' ', ',').replace(';', ',').split(',')]
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'
I downloaded the code and I was able to run a debug session (I'm no python coder yet ;). If I understand it correctly the error occurs when the wproxy-class is created the first time. During the initialization the parse_noproxy method will always be called with "noproxystr" = NONE...which seems to me that this should always fail (calling .lower() on NONE)?!
Another thing I'm wondering about is the mentioned line 132 in wproxy.py:
noproxy, self.noproxy_hosts = parse_noproxy(noproxy)
Shouldn't it be:
self.noproxy, self.noproxy_hosts = parse_noproxy(noproxy)
?
Hi! I just upgraded from version 0.4 to the current one and I get the following error on startup (using the same px.ini file as before):
My ini-file looks like this:
I downloaded the code and I was able to run a debug session (I'm no python coder yet ;). If I understand it correctly the error occurs when the wproxy-class is created the first time. During the initialization the parse_noproxy method will always be called with "noproxystr" = NONE...which seems to me that this should always fail (calling .lower() on NONE)?!
Another thing I'm wondering about is the mentioned line 132 in wproxy.py: noproxy, self.noproxy_hosts = parse_noproxy(noproxy)
Shouldn't it be: self.noproxy, self.noproxy_hosts = parse_noproxy(noproxy) ?
Thank you and best regards, phil