Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'response' is not defined #232

Closed
YannDev7 opened this issue Feb 29, 2020 · 1 comment · Fixed by #233
Closed

NameError: name 'response' is not defined #232

YannDev7 opened this issue Feb 29, 2020 · 1 comment · Fixed by #233

Comments

@YannDev7
Copy link

YannDev7 commented Feb 29, 2020

While using api.calendar.events() I got that error:

  File "<stdin>", line 1, in <module>
  File "C:\Users\yannd\AppData\Local\Programs\Python\Python36\lib\site-packages\pyicloud\services\calendar.py", line 62, in events
    self.refresh_client(from_dt, to_dt)
  File "C:\Users\yannd\AppData\Local\Programs\Python\Python36\lib\site-packages\pyicloud\services\calendar.py", line 55, in refresh_client
    req = self.session.get(self._calendar_refresh_url, params=params)
  File "C:\Users\yannd\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "C:\Users\yannd\AppData\Local\Programs\Python\Python36\lib\site-packages\pyicloud\base.py", line 100, in request
    self._raise_error(code, reason)
  File "C:\Users\yannd\AppData\Local\Programs\Python\Python36\lib\site-packages\pyicloud\base.py", line 107, in _raise_error
    raise PyiCloud2SARequiredError(response.url)
NameError: name 'response' is not defined
@Quentame
Copy link
Collaborator

How are you using the service ?

Sent with GitHawk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants