dagster-dingtalk 0.1.11__py3-none-any.whl → 0.1.12__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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)
@@ -1 +1 @@
1
- __version__ = "0.1.11"
1
+ __version__ = "0.1.12"
@@ -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
@@ -0,0 +1,8 @@
1
+ dagster_dingtalk/__init__.py,sha256=X7r8JoydXOsT9Sis4rBpVSKQeKJnnZ_t_qFae-ASF7E,466
2
+ dagster_dingtalk/app_client.py,sha256=STTBxNzs2rhyHX7gsDuTpftJcctbTPKRAFIZV7zsF08,13800
3
+ dagster_dingtalk/operations.py,sha256=3cCZCxh-dAdzzb75WCTKVdzeMV8yu_JJpIeULS7XaNg,761
4
+ dagster_dingtalk/resources.py,sha256=XXGRub47EZY2MfAsGhyEZ_Joh_D-BMFNh_jXCVPx6tU,17255
5
+ dagster_dingtalk/version.py,sha256=LcIlFjHZFfiF9Rd4UHoakmombOFkxIYk00I181frGBM,23
6
+ dagster_dingtalk-0.1.12.dist-info/METADATA,sha256=SW9BRyeyi1n4TwidyzrrWxpHK2usjXI-wTJxysI3tN8,1221
7
+ dagster_dingtalk-0.1.12.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
8
+ dagster_dingtalk-0.1.12.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- dagster_dingtalk/__init__.py,sha256=X7r8JoydXOsT9Sis4rBpVSKQeKJnnZ_t_qFae-ASF7E,466
2
- dagster_dingtalk/app_client.py,sha256=xZ9NcVZuWvz7S2thm4B1h4aFiBXmUnkp5nK5N_k7HwE,14011
3
- dagster_dingtalk/operations.py,sha256=3cCZCxh-dAdzzb75WCTKVdzeMV8yu_JJpIeULS7XaNg,761
4
- dagster_dingtalk/resources.py,sha256=XXGRub47EZY2MfAsGhyEZ_Joh_D-BMFNh_jXCVPx6tU,17255
5
- dagster_dingtalk/version.py,sha256=nllDrH0jyChMuuYrK0CC55iTBKUNTUjejtcwxyUF2EQ,23
6
- dagster_dingtalk-0.1.11.dist-info/METADATA,sha256=AqQfS-lsnBW-PBoad9xIsZei9b995Yf4SJhaHq1YQ7c,1221
7
- dagster_dingtalk-0.1.11.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
8
- dagster_dingtalk-0.1.11.dist-info/RECORD,,