mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Reforming data inserts
This commit is contained in:
@@ -78,6 +78,9 @@ class Storage:
|
||||
)
|
||||
return True
|
||||
except Exception as e:
|
||||
if int(e.pgcode) == 22007:
|
||||
book[7] = psycopg2.Date(int(book[7]), 1, 1)
|
||||
self.insert_book(book)
|
||||
print(e)
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user