Skip to content

Commit

Permalink
fix another strange error
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed Jun 7, 2024
1 parent e14efa0 commit df6bf56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion truenas_installer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ async def get_partitions(
if _part in partitions:
# looks like {1: '/dev/sda1', 2: '/dev/nvme0n1p2'}
disk_partitions[_part] = f'/dev/{partdir.name}'
except ValueError:
except (OSError, ValueError):
# OSError: [Errno 19] No such device was seen on
# our internal CI/CD infrastructure for reasons
# not understood...
continue
except FileNotFoundError:
continue
Expand Down

0 comments on commit df6bf56

Please sign in to comment.