YoitsuWrap 0.2.0__tar.gz → 0.2.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: YoitsuWrap
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Wrapper pour AnimeSamaApi
5
5
  Author: TMCooper
6
6
  License: GPL-3.0-or-later
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "YoitsuWrap"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Wrapper pour AnimeSamaApi"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -67,11 +67,11 @@ class Config:
67
67
  API_LINK = f"{url}:{port}/api"
68
68
 
69
69
  try:
70
- status = requests.get(f"{API_LINK}/status", timeout=2)
70
+ status = requests.get(f"{API_LINK}/status", timeout=5)
71
71
  if status.status_code == 200:
72
72
  dict_config[source] = Config(BASE_URL=url, PORT=port, PATH=path, API_LINK=API_LINK, SOURCE=source)
73
73
 
74
74
  except (requests.exceptions.RequestException, requests.exceptions.ConnectionError) as e:
75
- print(f"Erreur reseau : Impossible de se connecter a l'api {source} ({API_LINK}/status\nErreur : {e})")
75
+ print(f"Erreur reseau : Impossible de se connecter a l'api {source} ({API_LINK}/status)\nErreur : {e})")
76
76
 
77
77
  return dict_config
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: YoitsuWrap
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Wrapper pour AnimeSamaApi
5
5
  Author: TMCooper
6
6
  License: GPL-3.0-or-later
File without changes
File without changes
File without changes