Skip to content

Commit

Permalink
Merge pull request #237 from nikodemas/fix_openstack_acc_exception
Browse files Browse the repository at this point in the history
Add new exception to json file load
  • Loading branch information
nikodemas authored Aug 9, 2023
2 parents 787e0b5 + 209e4f8 commit b59a407
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/CMSMonitoring/openstack_accounting.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def get_df_with_validation(json_file, schema, column_order):
except SchemaError as e:
print(tstamp(), "Data not exist or not valid:", str(e))
sys.exit(1)
except json.JSONDecodeError as e:
print(tstamp(), json_file, "file is empty:", str(e))
sys.exit(1)


def get_html_template(base_html_directory=None):
Expand Down

0 comments on commit b59a407

Please sign in to comment.