summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvuko <vuko@hackerspace.pl>2020-06-11 21:30:51 +0200
committervuko <vuko@hackerspace.pl>2020-06-11 21:30:51 +0200
commit187426515f23623d45987742310ef300bd00f1d0 (patch)
tree7903434a064ff0cb6dfdc04d449fc75c3f4a39de
parent6f3ba0a61f7045985b911d48fa65e9ad27df3d5f (diff)
downloadcheckinator-187426515f23623d45987742310ef300bd00f1d0.tar.gz
checkinator-187426515f23623d45987742310ef300bd00f1d0.tar.bz2
checkinator-187426515f23623d45987742310ef300bd00f1d0.zip
fix infinite loop error
-rw-r--r--at.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/at.py b/at.py
index 22bb220..96be1d8 100644
--- a/at.py
+++ b/at.py
@@ -246,7 +246,7 @@ class DhcpdUpdater(MtimeUpdater):
while True:
# using readline because iter(file) blocks file.tell usage
line = f.readline()
- if not f:
+ if not line:
return offset
line = line.split('#')[0]
cmd = line.strip().split()