Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
srp3rd committed Jan 22, 2025
1 parent b270c5b commit 29fb2ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/lsst/ctrl/oods/butlerAttendant.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ async def send_status_task(self):
msg = await self.status_queue.get()
await self.csc.send_imageInOODS(msg)
self.status_queue.task_done()
except asyncio.exceptions.CancelledError as err:
except asyncio.exceptions.CancelledError:
LOGGER.info("status get task cancelled")
return
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ctrl/oods/butlerProxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def clean_task(self):
"""Call the butler's clean_task method"""
try:
await self.butlerInstance.clean_task()
except asyncio.exceptions.CancelledError as err:
except asyncio.exceptions.CancelledError:
LOGGER.info("cleaning task cancelled")

async def send_status_task(self):
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ctrl/oods/fileIngester.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def helper_done_callback(self, task):
if task.exception():
try:
task.result()
except Exeception as e:
except Exception as e:
LOGGER.info(f"Task {task}: {e}")

def run_tasks(self):
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ctrl/oods/msgQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def dequeue_messages(self):
with concurrent.futures.ThreadPoolExecutor(max_workers=1) as pool:
message_list = await loop.run_in_executor(pool, self._get_messages)
return message_list
except asyncio.exceptions.CancelledError as err:
except asyncio.exceptions.CancelledError:
LOGGER.info("get messages task cancelled")

def commit(self, message):
Expand Down

0 comments on commit 29fb2ec

Please sign in to comment.