Advertisement
Guest User

Untitled

a guest
May 15th, 2024
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. update from last rec exception: (OperationalError(''),
  2.  
  3. Traceback (most recent call last):
  4. File "python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
  5. return self.cursor.execute(sql, params)
  6. psycopg2.OperationalError
  7.  
  8. The above exception was the direct cause of the following exception:
  9.  
  10. Traceback (most recent call last):
  11. File "trade_provider/utils.py", line 107, in trade_update_from_last_rec
  12. if model.objects.exists():
  13. File "python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
  14. return getattr(self.get_queryset(), name)(*args, **kwargs)
  15. File "python3.10/site-packages/django/db/models/query.py", line 1241, in exists
  16. return self.query.has_results(using=self.db)
  17. File "python3.10/site-packages/django/db/models/sql/query.py", line 598, in has_results
  18. return compiler.has_results()
  19. File "python3.10/site-packages/django/db/models/sql/compiler.py", line 1530, in has_results
  20. return bool(self.execute_sql(SINGLE))
  21. File "python3.10/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
  22. cursor.execute(sql, params)
  23. File "python3.10/site-packages/django/db/backends/utils.py", line 102, in execute
  24. return super().execute(sql, params)
  25. File "python3.10/site-packages/django/db/backends/utils.py", line 67, in execute
  26. return self._execute_with_wrappers(
  27. File "python3.10/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
  28. return executor(sql, params, many, context)
  29. File "python3.10/site-packages/django/db/backends/utils.py", line 84, in _execute
  30. with self.db.wrap_database_errors:
  31. File "python3.10/site-packages/django/db/utils.py", line 91, in __exit__
  32. raise dj_exc_value.with_traceback(traceback) from exc_value
  33. File "python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
  34. return self.cursor.execute(sql, params)
  35. django.db.utils.OperationalError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement