dropbox filestatus crashes in a dir with only unsynced files

Bug #1049043 reported by Matthäus Brandl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus-dropbox (Ubuntu)
New
Undecided
Unassigned

Bug Description

When running "dropbox filestatus" in a directory which only contains files which are no longer synced, the tool crashes with the following error:
% dropbox filestatus (-a)
Traceback (most recent call last):
  File "/usr/bin/dropbox", line 1360, in <module>
    ret = main(sys.argv)
  File "/usr/bin/dropbox", line 1349, in main
    result = commands[argv[i]](argv[i+1:])
  File "/usr/bin/dropbox", line 694, in newmeth
    return meth(*n, **kw)
  File "/usr/bin/dropbox", line 935, in filestatus
    indent = max(len(st)+1 for st in args)
ValueError: max() arg is an empty sequence

In any other directory it works as expected, as does
% dropbox filestatus -l
<empty>

% LC_ALL=C apt-cache policy nautilus-dropbox
nautilus-dropbox:
  Installed: 1.4.0
  Candidate: 1.4.0
  Version table:
 *** 1.4.0 0
        500 http://linux.dropbox.com/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status
     0.6.8-1 0
        500 http://de2.archive.ubuntu.com/ubuntu/ oneiric/multiverse i386 Packages

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.