Skip to content

Commit

Permalink
remove encoding=utf-8
Browse files Browse the repository at this point in the history
since we need to keep running it in python2
  • Loading branch information
belforte authored Jul 14, 2023
1 parent 581a238 commit bbf4469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/script/Monitor/GenerateMONIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def main():
if os.stat(lockFile).st_size == 0:
logger.error("Lockfile is empty.")
else:
with open(lockFile, 'r', encoding='utf-8') as lf:
with open(lockFile, 'r') as lf:
oldProcess = int(lf.read())
try:
if isRunning(oldProcess):
Expand Down Expand Up @@ -359,7 +359,7 @@ def main():

# Put PID in the lockfile
currentPid = str(os.getpid())
with open(lockFile, 'w', encoding='utf-8') as lf:
with open(lockFile, 'w') as lf:
lf.write(currentPid)

logger.info('Lock created. Start data collection')
Expand Down

0 comments on commit bbf4469

Please sign in to comment.