Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

create() got an unexpected keyword argument 'ttl' #573

Closed
Brodan opened this issue Nov 30, 2017 · 3 comments
Closed

create() got an unexpected keyword argument 'ttl' #573

Brodan opened this issue Nov 30, 2017 · 3 comments

Comments

@Brodan
Copy link
Contributor

Brodan commented Nov 30, 2017

I was copy/pasting some Python code from the Sync docs and it seems that the code in this snippet is erroneous.

When running the following:

list_instance = client.sync \
    .services("XXXXXXXXXXXXXXXXXXXXXXXX") \
    .sync_lists \
    .create(unique_name="ExampleList", ttl=1814400)

I get this output:

(venv) chranj@~/Documents/twilio-sync-tests$ python create_list.py 
Traceback (most recent call last):
  File "create_list.py", line 13, in <module>
    .create(unique_name="QuestList", ttl=1814400)
TypeError: create() got an unexpected keyword argument 'ttl'
@dprothero
Copy link
Contributor

dprothero commented Nov 30, 2017

Brodan, it's a new parameter. Update your Twilio python library to the latest version, or omit the ttl variable.

@Brodan
Copy link
Contributor Author

Brodan commented Nov 30, 2017

@dprothero Thank you! I was on 6.8.1, didn't think it was that new of a parameter!

@Brodan Brodan closed this as completed Nov 30, 2017
@dprothero
Copy link
Contributor

Shipped yesterday :)

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

No branches or pull requests

2 participants