diff options
| author | Gabriel Kosmacher <73120774+kennykos@users.noreply.github.com> | 2023-04-09 18:12:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-09 18:12:53 -0500 |
| commit | 3a10bd84157892f9160b5a8b80c6ceb366556703 (patch) | |
| tree | 4bbb0493138139ce58cc47d7e644aceab1ab5d0d | |
| parent | 0599c55ce0b244562db0c05e3256627438bd570e (diff) | |
Fixed so notebook should run and get info
| -rw-r--r-- | ui_security_inventory_23_parsing.ipynb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ui_security_inventory_23_parsing.ipynb b/ui_security_inventory_23_parsing.ipynb index 297203f..7b75cb0 100644 --- a/ui_security_inventory_23_parsing.ipynb +++ b/ui_security_inventory_23_parsing.ipynb @@ -437,9 +437,12 @@ " continue\n", " if company_info_dict[cb_df.at[i,'Company']] is None:\n", " continue\n", - " info_dict = dict(company_info_dict[cb_df.at[i,'Company']])\n", - " json_str = json.dumps(my_dict)\n", - " cb_df.at[i,'Info'] = json_str\n", + " try:\n", + " info_dict = dict(company_info_dict[cb_df.at[i,'Company']])\n", + " json_str = json.dumps(info_dict)\n", + " cb_df.at[i,'Info'] = json_str\n", + " except:\n", + " print(company_info_dict[cb_df.at[i,'Company']])\n", "\n", "# assert cb_df.at[i,'Company'] == 'Corporate Bonds', f\"Expected Cororate Bonds, got {cb_df.at[i,'Company']}\"" ] |
