Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions emrg/__main__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -136,7 +136,7 @@ async def _send_shutdown() -> bool:
if line:
data = json.loads(line.decode().strip())
return data.get("type") == "shutdown_ack"
except Exception:
except (OSError, asyncio.TimeoutError, json.JSONDecodeError, UnicodeDecodeError):
return False
return False

Expand DownExpand Up@@ -173,7 +173,7 @@ async def _get_pid():
print("daemon stopped.")
else:
print("daemon not running (no pid from ping).")
except Exception:
except (OSError, asyncio.TimeoutError, json.JSONDecodeError, UnicodeDecodeError):
print("daemon not running.")


Expand Down