X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/87221e4160e484a01d53d66e59db4c57c2904495..3e4b64c3fcb517c2224341ac0ca8ca60a0b48685:/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)