Skip to content

Commit

Permalink
fix import data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Dec 18, 2024
1 parent 9d5159a commit 1306810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/relational/postgres/import-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ def process_json_files(json_directory, db_params):

except json.JSONDecodeError as e:
print(f"Error reading JSON file {filename}: {str(e)}")
sys.exit(1)
except Exception as e:
print(f"Error processing file {filename}: {str(e)}")
sys.exit(1)

def main():
# Set up argument parser
Expand Down

0 comments on commit 1306810

Please sign in to comment.