Skip to content

Commit

Permalink
Support loading files without the prerequisite metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
s0600204 committed Mar 6, 2022
1 parent 97bc7b5 commit 72afc48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lisp/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,9 @@ def __load_from_file(self, session_file):
self.session.update_properties(session_dict["session"])
self.session.session_file = session_file

for plugin_name, plugin_config in session_dict['session']['plugins'].items():
self.__session.set_plugin_session_config(plugin_name, plugin_config)
if 'plugins' in session_dict['session']:
for plugin_name, plugin_config in session_dict['session']['plugins'].items():
self.__session.set_plugin_session_config(plugin_name, plugin_config)

self.session_initialised.emit(self.__session)

Expand Down

0 comments on commit 72afc48

Please sign in to comment.