diff --git a/app/main.py b/app/main.py index e5f34f8..ddd7356 100644 --- a/app/main.py +++ b/app/main.py @@ -288,6 +288,7 @@ origins = [ 'http://demo.localhost:5000', 'http://localhost:7800', 'https://oneskyit.com', + 'https://dev.oneskyit.com', 'http://dev-idaa.home:5000', 'http://dev-idaa.localhost:5000', 'http://dev.home:5000', diff --git a/app/routers/event_session.py b/app/routers/event_session.py index 3e47cd4..4f45785 100644 --- a/app/routers/event_session.py +++ b/app/routers/event_session.py @@ -262,7 +262,7 @@ async def patch_event_session_obj( obj_data_dict = obj.dict(by_alias=False, exclude_unset=True) log.debug(obj_data_dict) - log.debug(type(obj_data_dict['proposal_json'])) + log.debug(type(obj_data_dict.get('proposal_json', None))) if 'proposal_json' in obj_data_dict and isinstance(obj_data_dict['proposal_json'], dict): log.debug('Need to convert to JSON string') obj_data_dict['proposal_json'] = json.dumps(obj_data_dict['proposal_json'])