| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -176,7 +176,9 @@ async def remove(self): | |||
| 176 | 176 | async def watch(self): | |
| 177 | 177 | logger.info("Watching containers; will replace any that are stopped") | |
| 178 | 178 | containers = [] | |
| 179 | - for kind in (await self.get_containers()).keys(): | ||
| 179 | + for kind, count in (await self.get_containers()).items(): | ||
| 180 | + if not count > 0: | ||
| 181 | + continue | ||
| 180 | 182 | for name in await self.get_container_names(kind): | |
| 181 | 183 | containers.append(kind(name=name)) | |
| 182 | 184 | logger.info(f"Watching {containers}") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments