Fix reading an empty machine id file
This commit is contained in:
1 parent
bc8c9585a6
commit
43c07db772
1 file changed
+2
-1
+2
-1
@@ -214,7 +214,8 @@ class Configuration:
|
|||||||
|
|
||||||
if os.path.isfile('machine.txt'):
|
if os.path.isfile('machine.txt'):
|
||||||
with open('machine.txt') as fin:
|
with open('machine.txt') as fin:
|
||||||
self.machine_id = fin.readlines()[0]
|
for line in fin.readlines():
|
||||||
|
machine_id = line.rstrip(); break
|
||||||
|
|
||||||
class ServerReporter:
|
class ServerReporter:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user