Fix reading an empty machine id file

This commit is contained in:
andrew committed 2024-08-08 17:20:07 -04:00
1 parent bc8c9585a6
commit 43c07db772
1 file changed
+2 -1
+2 -1
View File
@@ -214,7 +214,8 @@ class Configuration:
if os.path.isfile('machine.txt'):
with open('machine.txt') as fin:
self.machine_id = fin.readlines()[0]
for line in fin.readlines():
machine_id = line.rstrip(); break
class ServerReporter: