Nstrain does not save app state if the NStrain user config folder not present

Bug #1127499 reported by Nekhelesh Ramananthan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NSTrain
Fix Released
High
Nekhelesh Ramananthan

Bug Description

On a clean install system, NSTrain is unable to save the app state since it cannot write into a file which does not exist. It throws the following error message.

[INFO] : Retrieving Station List - Authentication iniatiated..
[DEBUG]: url is http://webservices.ns.nl/ns-api-stations
Traceback (most recent call last):
  File "/home/krnekhelesh/PythonApps/GitHub/NSTrain/nstrain-app", line 274, in destroy
    app_state_file = open(BaseDirectory.xdg_config_dirs[0] + "/NSTrain/app_state", "w")
IOError: [Errno 2] No such file or directory: '/home/krnekhelesh/.config/NSTrain/app_state'

Changed in nstrain:
status: In Progress → Fix Committed
Changed in nstrain:
status: Fix Committed → Fix Released
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.