dagster-dingtalk 0.1.11__tar.gz → 0.1.12__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dagster-dingtalk
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary: A dagster plugin for the DingTalk
5
5
  Author: YiZixuan
6
6
  Author-email: sqkkyzx@qq.com
@@ -40,17 +40,10 @@ class DingTalkClient:
40
40
  else:
41
41
  try:
42
42
  with open(access_token_cache, 'rb') as f:
43
- cache_file = f.read()
43
+ all_access_token = pickle.loads(f.read())
44
44
  except Exception as e:
45
45
  logging.error(e)
46
- cache_file = None
47
- renew_reason = "鉴权缓存读取错误"
48
-
49
- if cache_file:
50
- try:
51
- all_access_token = pickle.loads(cache_file)
52
- except pickle.PickleError:
53
- renew_reason = f"鉴权缓存解析错误"
46
+ renew_reason = "鉴权缓存读取或解析错误"
54
47
 
55
48
  if all_access_token:
56
49
  app_access_token = all_access_token.get(self.app_id)
@@ -0,0 +1 @@
1
+ __version__ = "0.1.12"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dagster-dingtalk"
3
- version = "0.1.11"
3
+ version = "0.1.12"
4
4
  description = "A dagster plugin for the DingTalk"
5
5
  authors = ["YiZixuan <sqkkyzx@qq.com>"]
6
6
  readme = "README.md"
@@ -1 +0,0 @@
1
- __version__ = "0.1.11"