simple-rule34 1.0.0.2__tar.gz → 1.0.0.3__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: simple_rule34
3
- Version: 1.0.0.2
3
+ Version: 1.0.0.3
4
4
  Summary: Simple api wrapper of rule34.xxx for python with asynchronous support
5
5
  Author-email: StarMan12 <author@example.com>
6
6
  Project-URL: Homepage, https://github.com/SyperAlexKomp/simple-rule34-api
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "simple_rule34"
7
- version = "1.0.0.2"
7
+ version = "1.0.0.3"
8
8
  authors = [
9
9
  { name="StarMan12", email="author@example.com" },
10
10
  ]
@@ -73,6 +73,8 @@ class Rule34PostApi(Rule34BaseApi):
73
73
  tags = []
74
74
 
75
75
  xml_data = await self._get(json_=False, tags=" ".join(tags))
76
+ if xml_data is None: return 0
77
+
76
78
  xml_root = ET.fromstring(xml_data)
77
79
 
78
80
  return int(xml_root.get('count'))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simple_rule34
3
- Version: 1.0.0.2
3
+ Version: 1.0.0.3
4
4
  Summary: Simple api wrapper of rule34.xxx for python with asynchronous support
5
5
  Author-email: StarMan12 <author@example.com>
6
6
  Project-URL: Homepage, https://github.com/SyperAlexKomp/simple-rule34-api
File without changes