Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

无法 reset #20

Open
z0z0r4 opened this issue Sep 29, 2023 · 0 comments
Open

无法 reset #20

z0z0r4 opened this issue Sep 29, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@z0z0r4
Copy link
Owner

z0z0r4 commented Sep 29, 2023

> !!bb reset
[MCDR] [11:04:53] [better_backup:reset_cache/INFO]: [Better Backup] 准备重置备份数据
Exception in thread better_backup:reset_cache:
Traceback (most recent call last):
  File "D:\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "D:\Python\Python311\Lib\threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "D:\Python\Python311\Lib\site-packages\mcdreforged\api\decorator\new_thread.py", line 29, in wrapped_target
    raise e from None
  File "D:\Python\Python311\Lib\site-packages\mcdreforged\api\decorator\new_thread.py", line 26, in wrapped_target
    self.__return_value = target(*args_, **kwargs_)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\projects\mcdr\plugins\better_backup\better_backup\utils.py", line 154, in wrap
    func(source, *args, **kwargs)
  File "D:\projects\mcdr\plugins\better_backup\better_backup\operations.py", line 340, in reset_cache
    raise e #! TODO: handle database.close
    ^^^^^^^
  File "D:\projects\mcdr\plugins\better_backup\better_backup\operations.py", line 338, in reset_cache
    database.close()
  File "D:\Python\Python311\Lib\site-packages\pydal\base.py", line 809, in close
    if self._db_uid in THREAD_LOCAL._pydal_db_instances_:
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_thread._local' object has no attribute '_pydal_db_instances_'
@z0z0r4 z0z0r4 added the bug Something isn't working label Sep 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants