python-linkedin
python-linkedin copied to clipboard
Issue with http_api.py
When running http_api.py
its giving me this error:
Mathiss-iMac:match_ai mathis$ python3 http_api.py
Traceback (most recent call last):
File "http_api.py", line 17, in <module>
from linkedin.linkedin import LinkedInAuthentication, LinkedInApplication, PERMISSIONS
File "/usr/local/lib/python3.7/site-packages/linkedin/linkedin.py", line 294
except (requests.ConnectionError, requests.HTTPError), error:
^
SyntaxError: invalid syntax
I have looked through the previous issues and found that #86 is a similar issue. But this was in august of 2015, so I'm not sure if this has been fixed and re-appeared or if it hasn't yet.
Currently using Python 3.7.3 with linkedin==0.1.5.
I hope it can get resolved. Thanks!
#114 This issue has a solution to a similar err, maybe it helps, take a look
Thanks! unfortunately that didn't fix my issue!
Change to this -- ", error" -> "as error"
except (requests.ConnectionError, requests.HTTPError) as error: