DatabaseException
Failed to execute `INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s)` with `[92642, 'Bad River', 4, False]` because of `(1213, 'Deadlock found when trying to get lock; try restarting transaction')`
Stack Trace:
```
Python traceback
File "run.py", line 174, in
cli()
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "run.py", line 68, in scraper
task(['scraper', source])
File "run.py", line 154, in run_all_tasks
s.scrape() # type: ignore
File "/home/discord/decksite/decksite/scrapers/mtggoldfish.py", line 42, in scrape
deck.add_deck(d)
File "/home/discord/decksite/decksite/data/deck.py", line 384, in add_deck
add_cards(deck_id, cards)
File "/home/discord/decksite/decksite/data/deck.py", line 414, in add_cards
insert_deck_card(deck_id, name, n, False)
File "/home/discord/decksite/decksite/data/deck.py", line 431, in insert_deck_card
db().execute(sql, [deck_id, name, n, in_sideboard])
File "/home/discord/decksite/shared/database.py", line 48, in execute
[n, _] = self.execute_anything(sql, args, False)
File "/home/discord/decksite/shared/database.py", line 63, in execute_anything
raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))
```
DatabaseException
Failed to execute `INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s)` with `[94484, 'Agony Warp', 1, False]` because of `(1213, 'Deadlock found when trying to get lock; try restarting transaction')`
Stack Trace:
```
Python traceback
File "run.py", line 174, in
cli()
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/discord/.local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "run.py", line 68, in scraper
task(['scraper', source])
File "run.py", line 154, in run_all_tasks
s.scrape() # type: ignore
File "/home/discord/decksite/decksite/scrapers/mtggoldfish.py", line 42, in scrape
deck.add_deck(d)
File "/home/discord/decksite/decksite/data/deck.py", line 384, in add_deck
add_cards(deck_id, cards)
File "/home/discord/decksite/decksite/data/deck.py", line 414, in add_cards
insert_deck_card(deck_id, name, n, False)
File "/home/discord/decksite/decksite/data/deck.py", line 431, in insert_deck_card
db().execute(sql, [deck_id, name, n, in_sideboard])
File "/home/discord/decksite/shared/database.py", line 48, in execute
[n, _] = self.execute_anything(sql, args, False)
File "/home/discord/decksite/shared/database.py", line 63, in execute_anything
raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))
```
Reported on CLI by CLI
DatabaseException Failed to execute `INSERT INTO deck_card (deck_id, card, n, sideboard) VALUES (%s, %s, %s, %s)` with `[92642, 'Bad River', 4, False]` because of `(1213, 'Deadlock found when trying to get lock; try restarting transaction')`
Stack Trace: ``` Python traceback File "run.py", line 174, inException_hash: 33fb209fa1765f6f39341d7b679b3efc80deb73f