show data that caused failure
This commit is contained in:
parent
63ec84e9b2
commit
ffe43dbd38
@ -153,6 +153,7 @@ def filepath():
|
||||
return os.path.dirname(os.path.realpath(__file__)) + os.sep + "data.json"
|
||||
|
||||
def insert_entry(cursor, e):
|
||||
try:
|
||||
now = datetime.datetime.now()
|
||||
application_url = None
|
||||
if e["application_url"] != None:
|
||||
@ -174,6 +175,9 @@ def insert_entry(cursor, e):
|
||||
e["data_source_link"],
|
||||
e["uprn"])
|
||||
)
|
||||
except psycopg2.errors.Error as error:
|
||||
show_dictionary(e)
|
||||
raise error
|
||||
|
||||
def show_dictionary(data):
|
||||
for key in data.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user