X

Stacktrace when downloads_dir is not set in the configuration file

If downloads_dir is not set into sat.conf file, launching cagou returns:

Window: virtual keyboard not allowed, single mode, not docked
Traceback (most recent call last):
File "/Users/xavier/.local/bin/cagou", line 23, in <module>
cagou.run()
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/__init__.py", line 37, in run
host = G._host = cagou_main.Cagou()
File "/Users/xavier/.local/lib/python2.7/site-packages/cagou/core/cagou_main.py", line 379, in __init__
if not os.path.exists(self.downloads_dir):
File "/Users/xavier/.local/bin/../lib/python2.7/genericpath.py", line 26, in exists
os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found

Adding it fixes this problem.

I'd recommend setting a default value when it is not set by the user.
G

goffi 19/07/2019, 19:42

Can't reproduce, is this working for you now without adding this setting?

id

261

author

Xavier Maillard

created

30/06/2018, 06:26

updated

30/06/2018, 06:26

labels
cagou configuration
type
bug
status
queued
priority
normal
milestone
0.7
severity
normal