nonebot-plugin-shiro-web-console 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nonebot-plugin-shiro-web-console might be problematic. Click here for more details.
- nonebot_plugin_shiro_web_console/__init__.py +6 -3
- {nonebot_plugin_shiro_web_console-0.1.5.dist-info → nonebot_plugin_shiro_web_console-0.1.6.dist-info}/METADATA +1 -1
- nonebot_plugin_shiro_web_console-0.1.6.dist-info/RECORD +7 -0
- nonebot_plugin_shiro_web_console-0.1.5.dist-info/RECORD +0 -7
- {nonebot_plugin_shiro_web_console-0.1.5.dist-info → nonebot_plugin_shiro_web_console-0.1.6.dist-info}/WHEEL +0 -0
- {nonebot_plugin_shiro_web_console-0.1.5.dist-info → nonebot_plugin_shiro_web_console-0.1.6.dist-info}/licenses/LICENSE +0 -0
|
@@ -31,7 +31,7 @@ __plugin_meta__ = PluginMetadata(
|
|
|
31
31
|
supported_adapters={"~onebot.v11"},
|
|
32
32
|
extra={
|
|
33
33
|
"author": "luojisama",
|
|
34
|
-
"version": "0.1.
|
|
34
|
+
"version": "0.1.6",
|
|
35
35
|
"pypi_test": "nonebot-plugin-shiro-web-console",
|
|
36
36
|
},
|
|
37
37
|
)
|
|
@@ -126,8 +126,11 @@ async def check_auth(request: Request):
|
|
|
126
126
|
return True
|
|
127
127
|
|
|
128
128
|
try:
|
|
129
|
-
app: FastAPI = get_app()
|
|
130
|
-
except ValueError:
|
|
129
|
+
app: Optional[FastAPI] = get_app()
|
|
130
|
+
except (ValueError, AssertionError):
|
|
131
|
+
app = None
|
|
132
|
+
|
|
133
|
+
if app is None:
|
|
131
134
|
app = FastAPI()
|
|
132
135
|
logger.warning("FastAPI app not found, created a new one. This might happen during plugin test.")
|
|
133
136
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nonebot-plugin-shiro-web-console
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: 一个用于 NoneBot2 的网页控制台插件,支持通过浏览器查看日志和发送消息
|
|
5
5
|
Project-URL: Homepage, https://github.com/luojisama/nonebot-plugin-shiro-web-console
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/luojisama/nonebot-plugin-shiro-web-console/issues
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
nonebot_plugin_shiro_web_console/__init__.py,sha256=YPO-XtylSdnOF3vqEmflOhEbsnZr1xg7Ul46PziSd7o,31567
|
|
2
|
+
nonebot_plugin_shiro_web_console/config.py,sha256=LqHht8N5CuSMyBbEjzyJgfZtg05cvBlpGn_2MgTjt-g,202
|
|
3
|
+
nonebot_plugin_shiro_web_console/static/index.html,sha256=YFQ4e0WsfWYHQ01pD0Xify-CFCcnKE9mXDG6vQimU4s,78428
|
|
4
|
+
nonebot_plugin_shiro_web_console-0.1.6.dist-info/METADATA,sha256=W8H1BPkptruRzqt7FyPZJZlrAjC129F0xh7AiGM7vJE,2010
|
|
5
|
+
nonebot_plugin_shiro_web_console-0.1.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
6
|
+
nonebot_plugin_shiro_web_console-0.1.6.dist-info/licenses/LICENSE,sha256=WedEfsrQQfoZsmbJHIAPn4UY_IcpavYULMV5in_ZPbg,1066
|
|
7
|
+
nonebot_plugin_shiro_web_console-0.1.6.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
nonebot_plugin_shiro_web_console/__init__.py,sha256=HGNaL_ImvssgoH96gcJKDsAqizcLYmshn-OW-HIt6qQ,31507
|
|
2
|
-
nonebot_plugin_shiro_web_console/config.py,sha256=LqHht8N5CuSMyBbEjzyJgfZtg05cvBlpGn_2MgTjt-g,202
|
|
3
|
-
nonebot_plugin_shiro_web_console/static/index.html,sha256=YFQ4e0WsfWYHQ01pD0Xify-CFCcnKE9mXDG6vQimU4s,78428
|
|
4
|
-
nonebot_plugin_shiro_web_console-0.1.5.dist-info/METADATA,sha256=uBu8UzEhMILhUi8bR-BdEwgu94hYMOT2MNqIDdP7WxU,2010
|
|
5
|
-
nonebot_plugin_shiro_web_console-0.1.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
6
|
-
nonebot_plugin_shiro_web_console-0.1.5.dist-info/licenses/LICENSE,sha256=WedEfsrQQfoZsmbJHIAPn4UY_IcpavYULMV5in_ZPbg,1066
|
|
7
|
-
nonebot_plugin_shiro_web_console-0.1.5.dist-info/RECORD,,
|
|
File without changes
|