Skip to content

Commit f9cf390

Browse files
author
Eric Koleda
committed
Add import for errors module. Fixes #20.
1 parent 2c871ce commit f9cf390

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps_script/quickstart/quickstart.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
project, and log the script's URL to the user.
2020
"""
2121
from __future__ import print_function
22+
from apiclient import errors
2223
from apiclient.discovery import build
2324
from httplib2 import Http
2425
from oauth2client import file, client, tools
@@ -35,7 +36,7 @@
3536
# Call the Apps Script API
3637
try:
3738
# Create a new project
38-
request = {'title': 'My Script'}
39+
request = {'title2': 'My Script'}
3940
response = service.projects().create(body=request).execute()
4041

4142
# Upload two files to the project

0 commit comments

Comments
 (0)