tienfuc / gdcmdtools

Google drive command-line tools
BSD 2-Clause "Simplified" License
57 stars 4 forks source link

exception on no $HOME/.gdcmdtools.creds #42

Closed acumon closed 9 years ago

acumon commented 9 years ago

version: latest (0.92) when I run python ./gdauth.py client_secret.json. the python script throws an exception

Traceback (most recent call last): File "./gdauth.py", line 76, in auth = GDAuth(args.secret_file, if_oob) File "/usr/local/google/home/xiaomingc/lab/gdcmdtools/gdcmdtools/gdcmdtools/auth.py", line 37, in init os.remove(storage_file) OSError: [Errno 2] No such file or directory: 'MY_HOME_DIR/.gdcmdtools.creds'

joestump commented 9 years ago

touch $HOME/.gdcmdtools.creds will fix this error. It should only attempt to delete the file if it exists.

tienfuc commented 9 years ago

Sorry for taking it so long, the issue is fixed.