adulau / Forban

Forban is a p2p application for link-local and local area networks. Forban works independently from the Internet and uses only the local area capabilities to announce, discover, search or share files. Forban relies on HTTP and it is "opportunistic".
http://www.foo.be/forban/
134 stars 24 forks source link

cleanloot throws an error if no loot exists #12

Closed MaStr closed 12 years ago

MaStr commented 12 years ago

Running cleanloot without loot-folder causes an Error:

Traceback (most recent call last): File "/opt/forban/bin/forbanctl", line 189, in deleteloots() File "/opt/forban/bin/forbanctl", line 105, in deleteloots for dirs in os.listdir(lootpath): OSError: [Errno 2] No such file or directory: '/opt/forban/var/loot'

A message: "No loot found" - would be better (like cleaning PIDs)