GNServer 0.0.0.0.45__py3-none-any.whl → 0.0.0.0.46__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.
GNServer/_client.py CHANGED
@@ -250,8 +250,13 @@ class AsyncClient:
250
250
  devLog(request, '1.1.2', 10, 'Request is GNRequest')
251
251
 
252
252
  request = await self._resolve_requests_transport(request)
253
-
254
- c = await self.connect(request, restart_connection, reconnect_wait, keep_alive=keep_alive)
253
+ try:
254
+ c = await self.connect(request, restart_connection, reconnect_wait, keep_alive=keep_alive)
255
+ except Exception as e:
256
+ if isinstance(e, GNResponse):
257
+ return e
258
+ else:
259
+ return GNResponse('error')
255
260
  devLog(request, '1.1.3', 10, f'Connected: {c.status}')
256
261
 
257
262
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GNServer
3
- Version: 0.0.0.0.45
3
+ Version: 0.0.0.0.46
4
4
  Summary: GNServer
5
5
  Home-page: https://github.com/KeyisB/libs/tree/main/GNServer
6
6
  Author: KeyisB
@@ -1,13 +1,13 @@
1
1
  GNServer/__init__.py,sha256=6CMCZlkBO74PW8i8DAri5xz2fYM9EyPH8vdsLYBMmOo,1560
2
2
  GNServer/_app.py,sha256=4JCz2-MDKPbzu45iB8tYarYnfr1lP02B0KOrC1sSBP8,17489
3
- GNServer/_client.py,sha256=jABXjnNJ9o6Mo3jRTW5Qyb-yhgjdH4VnIexwOplJcyg,31867
3
+ GNServer/_client.py,sha256=MNNnBl1u9OAafIzDnOz3aYgcJUg8QizEV8QDFdGy8LQ,32071
4
4
  GNServer/_cors_resolver.py,sha256=aDxk4ItaEK-6vlDbkno8FJZEjczGEe8vkOui6_kz5-Y,5950
5
5
  GNServer/_crt.py,sha256=SOmyX7zBiCY9EhVSekksQtBHgTIZVvdqNZ8Ni-E5Zow,1390
6
6
  GNServer/_func_params_validation.py,sha256=pDXRzPVTdPnDHFMMmKd014SConBjFOuaLeJTY0vldlM,11412
7
7
  GNServer/_routes.py,sha256=bJnmQ8uEhPVQgy2tTqE5TEIM8aFXV-lVI7c2nG0rQwk,3384
8
8
  GNServer/_template_resolver.py,sha256=vdJYb_7PjIeTWq-Clr7jyj7QIvPBxplU7EqeOuMJ64c,1409
9
- gnserver-0.0.0.0.45.dist-info/licenses/LICENSE,sha256=_rN-sb3LemR3cKsEqjJRdXkdt7mME1mkW1BwWEn-zAw,1309
10
- gnserver-0.0.0.0.45.dist-info/METADATA,sha256=_WEuY_pNTQNaJZ_fVQjgLw5zmcYO44bokVAGKxbj_Ps,830
11
- gnserver-0.0.0.0.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- gnserver-0.0.0.0.45.dist-info/top_level.txt,sha256=-UOUBuD4u7Qkb1o5PdcwyA3kx8xCH2lwy0tJHi26Wb4,9
13
- gnserver-0.0.0.0.45.dist-info/RECORD,,
9
+ gnserver-0.0.0.0.46.dist-info/licenses/LICENSE,sha256=_rN-sb3LemR3cKsEqjJRdXkdt7mME1mkW1BwWEn-zAw,1309
10
+ gnserver-0.0.0.0.46.dist-info/METADATA,sha256=DqryQQB6rgpEB2I4zx-nZ7lqjG6PhFD5lASpHFcIds0,830
11
+ gnserver-0.0.0.0.46.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ gnserver-0.0.0.0.46.dist-info/top_level.txt,sha256=-UOUBuD4u7Qkb1o5PdcwyA3kx8xCH2lwy0tJHi26Wb4,9
13
+ gnserver-0.0.0.0.46.dist-info/RECORD,,