smartpush 1.1.4__tar.gz → 1.1.5__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,5 +1,5 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartpush
3
- Version: 1.1.4
3
+ Version: 1.1.5
4
4
  Summary: 用于smartpush自动化测试工具包
5
5
  Author: 卢泽彬、邵宇飞、周彦龙
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='smartpush',
5
- version='1.1.4',
5
+ version='1.1.5',
6
6
  description='用于smartpush自动化测试工具包',
7
7
  author='卢泽彬、邵宇飞、周彦龙',
8
8
  packages=find_packages(),
@@ -2,8 +2,7 @@
2
2
  import json
3
3
 
4
4
  import requests
5
- import tenacity
6
- from tenacity import retry, stop_after_attempt, wait_fixed
5
+ from tenacity import retry, stop_after_attempt, wait_fixed,RetryError
7
6
 
8
7
  from smartpush.utils.StringUtils import StringUtils
9
8
 
@@ -75,7 +74,7 @@ def get_oss_address_with_retry(target_id, url, requestHeader, requestParam, **kw
75
74
  return get_oss_address()
76
75
  except Exception as e:
77
76
  # print(f"最终失败,错误信息: {e}")
78
- if isinstance(e, tenacity.RetryError):
77
+ if isinstance(e, RetryError):
79
78
  cancel_export_file(target_id)
80
79
  return None
81
80
 
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartpush
3
- Version: 1.1.4
3
+ Version: 1.1.5
4
4
  Summary: 用于smartpush自动化测试工具包
5
5
  Author: 卢泽彬、邵宇飞、周彦龙
File without changes
File without changes
File without changes