job_state: fix linter errors

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-10-07 10:31:15 -04:00
parent 7219cc45a5
commit 2a7594fc3b
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ class JobState:
sub: Dict[str, Optional[List[str]]] = {"print_stats": None}
try:
result = await kapis.subscribe_objects(sub, self._status_update)
except self.server.error as e:
logging.info(f"Error subscribing to print_stats")
except self.server.error:
logging.info("Error subscribing to print_stats")
self.last_print_stats = result.get("print_stats", {})
if "state" in self.last_print_stats:
state = self.last_print_stats["state"]