X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/be4d0fc9022240b5047654523aab877cbaa8a73d..051aec5225cdb45d259b93cf5256ff0e54c85091:/examples/all-in-one.py?ds=inline 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)