Closed seamustuohy closed 9 years ago
To fix I will add some good old duck typing to catch this and then something in the renderer that is "sad" that there are no profiles yet but suggests creating a new profile. (see issue https://github.com/OpenInternet/co-pilot/issues/65)
The code will look something like the below.
try:
profiles = [BLAH BLAH BLAH]
except OSError:
profiles = [""]
no_profiles = True
Stack trace points to the profiles view line 101 with the error
OSError: [Errorno 2] No such file or directory: '/tmp/copilot/profiles/'
This is obviously a lack of checking for if that directory exists.