The load-delete function calls sw-patch del-release function
that tries to delete a 'version' key from a dictionary that
does not exists.
This dictionary is populated looping the folders inside
/www/pages/feed. Each folder is a version imported.
After the upgrade the old version folder is deleted,
the version is not include at the dictionary.
The solution was to verify if this key exists before deleting.
The following tests
Tested load-delete action on a SX system after load-import
Tested load-delete action on a SX system after upgrade-complete
Closes-Bug: 1940302
Signed-off-by: João Pedro Alexandroni Cordova de Sousa <JoaoPedroAlexandroni.CordovadeSouza@windriver.com>
Change-Id: I83f8d144edd53523a98402fbee71dce1507fc79c