mirror of
https://github.com/maubot/maubot
synced 2025-08-30 22:30:38 +00:00
Fix bugs in init and plugin upload filenames
This commit is contained in:
parent
767885cec7
commit
28d7731e70
4 changed files with 15 additions and 7 deletions
|
@ -151,7 +151,7 @@ class ZippedPluginLoader(PluginLoader):
|
|||
|
||||
def _get_importer(self, reset_cache: bool = False) -> zipimporter:
|
||||
try:
|
||||
if not self._importer:
|
||||
if not self._importer or self._importer.archive != self.path:
|
||||
self._importer = zipimporter(self.path)
|
||||
if reset_cache:
|
||||
self._importer.reset_cache()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue