MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / _handle_error

Function _handle_error

web/pgadmin/utils/__init__.py:883–892  ·  view source on GitHub ↗

This function is used to print the error msg and exit from app if called from setup.py

(error_msg, from_setup)

Source from the content-addressed store, hash-verified

881
882
883def _handle_error(error_msg, from_setup):
884 """
885 This function is used to print the error msg and exit from app if
886 called from setup.py
887 """
888 if from_setup:
889 print(error_msg)
890 sys.exit(1)
891
892 return False, error_msg
893
894
895# Shortcut configuration for Accesskey

Callers 4

load_usersMethod · 0.90
set_prefsMethod · 0.90
dump_database_serversFunction · 0.85
load_database_serversFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected