omnata-plugin-runtime 0.3.24a74__tar.gz → 0.3.24a75__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.1
2
2
  Name: omnata-plugin-runtime
3
- Version: 0.3.24a74
3
+ Version: 0.3.24a75
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "omnata-plugin-runtime"
3
- version = "0.3.24-a74"
3
+ version = "0.3.24-a75"
4
4
  description = "Classes and common runtime components for building and running Omnata Plugins"
5
5
  authors = ["James Weakley <james.weakley@omnata.com>"]
6
6
  readme = "README.md"
@@ -59,10 +59,11 @@ class PluginEntrypoint:
59
59
  self._plugin_instance._session = session # pylint: disable=protected-access
60
60
  # the sync engine can override the snowflake connector log level via a session variable
61
61
  default_snowflake_connector_log_level:str = "WARN"
62
- v = session.sql("select getvariable('SNOWFLAKE_CONNECTOR_LOG_LEVEL')").collect()
63
- result = v[0][0]
64
- if result is not None:
65
- default_snowflake_connector_log_level = result
62
+ if session is not None:
63
+ v = session.sql("select getvariable('SNOWFLAKE_CONNECTOR_LOG_LEVEL')").collect()
64
+ result = v[0][0]
65
+ if result is not None:
66
+ default_snowflake_connector_log_level = result
66
67
  snowflake_logger = logging.getLogger("snowflake.connector")
67
68
  snowflake_logger.setLevel(default_snowflake_connector_log_level)
68
69
  snowflake_logger.propagate = False