In certain cases partis may be reasonably expected to output an empty partition-file. Currently, ClusterPath.readfile throws an error when this happens. @psathyrella has agreed that it might make sense for this method to behave more appropriately (or at least have a descriptive exception one could try/except on?).
For now I'm going to just catch the Exception that currently gets thrown and manually check to see if it's from an empty file. But eventually, we'll want to adapt this solution to match whatever @psathyrella comes up with on his end.
In certain cases partis may be reasonably expected to output an empty partition-file. Currently,
ClusterPath.readfile
throws an error when this happens. @psathyrella has agreed that it might make sense for this method to behave more appropriately (or at least have a descriptive exception one could try/except on?).For now I'm going to just catch the Exception that currently gets thrown and manually check to see if it's from an empty file. But eventually, we'll want to adapt this solution to match whatever @psathyrella comes up with on his end.