Update count.py
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
56626047c5
commit
a71ee6414a
1 changed files with 8 additions and 9 deletions
|
@ -15,8 +15,7 @@ CREDENTIALS_PATH = os.path.join(DIR, 'credentials.json')
|
|||
|
||||
if not os.path.isfile(CREDENTIALS_PATH):
|
||||
print(0)
|
||||
sys.exit()
|
||||
|
||||
else:
|
||||
try:
|
||||
gmail = discovery.build(
|
||||
'gmail', 'v1', credentials=file.Storage(CREDENTIALS_PATH).get())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue