yadayada / acd_cli

An unmaintained command line interface and FUSE filesystem for Amazon (Cloud) Drive
Other
1.35k stars 165 forks source link

crash without message. #479

Closed Cologler closed 8 years ago

Cologler commented 8 years ago

acdcli ver (newest)

Traceback (most recent call last):
  File "C:\Users\X\AppData\Local\Programs\Python\Python35\Scripts\acdcli-script.py", line 11, in <module>
    load_entry_point('acdcli==0.3.2', 'console_scripts', 'acdcli')()
  File "C:\Users\X\AppData\Local\Programs\Python\Python35\Scripts\acd_cli.py", line 1607, in main
    incl_trash=args.action not in no_autores_trash_actions)
  File "C:\Users\X\AppData\Local\Programs\Python\Python35\Scripts\acd_cli.py", line 1133, in resolve_remote_path_args
    setattr(args, id_attr + '_path', cache.first_path(val))
  File "c:\users\X\appdata\local\programs\python\python35\lib\site-packages\acdcli\cache\query.py", line 274, in first_path
    node = Node(r)
  File "c:\users\X\appdata\local\programs\python\python35\lib\site-packages\acdcli\cache\query.py", line 78, in __init__
    self.id = row['id']
TypeError: 'NoneType' object is not subscriptable

I call acdcli ul {path} {folder-id} before sync, then it crash. I think the can raise a message like that: 'node not found, please sync first.' 👍