omnata-plugin-runtime 0.4.0a87__py3-none-any.whl → 0.4.0a88__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -350,12 +350,13 @@ class SyncRequest(ABC):
350
350
  update_rate_limit_result = self._plugin_message(
351
351
  PluginMessageRateLimitState(rate_limit_state=self.rate_limit_state_this_sync_and_branch)
352
352
  )
353
- sync_id:int = update_rate_limit_result["sync_id"]
354
- sync_branch_name:str = update_rate_limit_result["sync_branch_name"]
355
- latest_state:Dict[int,Dict[str,Dict[str,RateLimitState]]] = parse_obj_as(Dict[int,Dict[str,Dict[str,RateLimitState]]],update_rate_limit_result["latest_state"])
356
- (rate_limit_state_all, rate_limit_state_this_branch) = RateLimitState.collapse(latest_state,sync_id, sync_branch_name)
357
- self.rate_limit_state_all = rate_limit_state_all
358
- self.rate_limit_state_this_sync_and_branch = rate_limit_state_this_branch
353
+ if update_rate_limit_result is not None:
354
+ sync_id:int = update_rate_limit_result["sync_id"]
355
+ sync_branch_name:str = update_rate_limit_result["sync_branch_name"]
356
+ latest_state:Dict[int,Dict[str,Dict[str,RateLimitState]]] = parse_obj_as(Dict[int,Dict[str,Dict[str,RateLimitState]]],update_rate_limit_result["latest_state"])
357
+ (rate_limit_state_all, rate_limit_state_this_branch) = RateLimitState.collapse(latest_state,sync_id, sync_branch_name)
358
+ self.rate_limit_state_all = rate_limit_state_all
359
+ self.rate_limit_state_this_sync_and_branch = rate_limit_state_this_branch
359
360
  else:
360
361
  logger.info("No rate limit state to update")
361
362
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.4.0a87
3
+ Version: 0.4.0a88
4
4
  Summary: Classes and common runtime components for building and running Omnata Plugins
5
5
  Author: James Weakley
6
6
  Author-email: james.weakley@omnata.com
@@ -3,10 +3,10 @@ omnata_plugin_runtime/api.py,sha256=W79CsAcl127Dzy-XVS9CzvzsbS3IigVH4QAhFFDkaXg,
3
3
  omnata_plugin_runtime/configuration.py,sha256=7cMekoY8CeZAJHpASU6tCMidF55Hzfr7CD74jtebqIY,35742
4
4
  omnata_plugin_runtime/forms.py,sha256=pw_aKVsXSz47EP8PFBI3VDwdSN5IjvZxp8JTjO1V130,18421
5
5
  omnata_plugin_runtime/logging.py,sha256=bn7eKoNWvtuyTk7RTwBS9UARMtqkiICtgMtzq3KA2V0,3272
6
- omnata_plugin_runtime/omnata_plugin.py,sha256=s9h0zqkCJYeBpKIeUQathy7gOw_0Tw-irhdBW72q2xo,105616
6
+ omnata_plugin_runtime/omnata_plugin.py,sha256=iTt5a69IIQPlQvdMnynRVn3d825nx1M04NuXZUipLxI,105693
7
7
  omnata_plugin_runtime/plugin_entrypoints.py,sha256=D2f0Qih7KTJNXIDYkA-E55RTEK_7Jtv9ySqspWxERVA,28272
8
8
  omnata_plugin_runtime/rate_limiting.py,sha256=29Hjsr0i1rE8jERVdIFGINfQfp_kI3PDft-IM_ZxvCA,21509
9
- omnata_plugin_runtime-0.4.0a87.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
- omnata_plugin_runtime-0.4.0a87.dist-info/METADATA,sha256=-yx21xGaWDk6paSBL0QfVC2JE4IiEyeV6SQiQT7KfMo,1603
11
- omnata_plugin_runtime-0.4.0a87.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
- omnata_plugin_runtime-0.4.0a87.dist-info/RECORD,,
9
+ omnata_plugin_runtime-0.4.0a88.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
10
+ omnata_plugin_runtime-0.4.0a88.dist-info/METADATA,sha256=i6A408aPm8ATPDIRGYGgmq58UMrzeeA_9c7SrUX7p0I,1603
11
+ omnata_plugin_runtime-0.4.0a88.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
12
+ omnata_plugin_runtime-0.4.0a88.dist-info/RECORD,,