From 44b4c6cc40412fa75228e359ca16afb2532942db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 28 Jan 2019 13:00:26 +0100 Subject: [PATCH] :bug: sleep => time.sleep --- src/octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 803c5f6a9..370ac0d98 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -3363,7 +3363,7 @@ class MachineCom(object): # may be busy, so give things a little time before we try again. Extend this # period each time we fail until either we write the data or run out of retry attempts. if passes > 1: - sleep((passes-1)/10.0) + time.sleep((passes-1)/10.0) ##~~ command handlers