X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/be4d0fc9022240b5047654523aab877cbaa8a73d..12ec16a8c88c5a13ef2fe79b4505f69f021ec7cf:/examples/all-in-one.py?ds=sidebyside diff --git a/examples/all-in-one.py b/examples/all-in-one.py index 6dda607..f7933a9 100755 --- a/examples/all-in-one.py +++ b/examples/all-in-one.py @@ -198,7 +198,7 @@ try: try: data = pms5003.read() except pmsReadTimeoutError: - logging.warn("Failed to read PMS5003") + logging.warning("Failed to read PMS5003") else: data = float(data.pm_ug_per_m3(1.0)) display_text(variables[mode], data, unit) @@ -209,7 +209,7 @@ try: try: data = pms5003.read() except pmsReadTimeoutError: - logging.warn("Failed to read PMS5003") + logging.warning("Failed to read PMS5003") else: data = float(data.pm_ug_per_m3(2.5)) display_text(variables[mode], data, unit) @@ -220,7 +220,7 @@ try: try: data = pms5003.read() except pmsReadTimeoutError: - logging.warn("Failed to read PMS5003") + logging.warning("Failed to read PMS5003") else: data = float(data.pm_ug_per_m3(10)) display_text(variables[mode], data, unit)