|
|
|
|
|
by masklinn
3811 days ago
|
|
Don't forget the part where checking for preconditions opens you up to race conditions e.g. if not file_exists(filepath):
stderr("invalid config filepath!")
# filepath is removed by an external tool
config = read_file(filepath) # blows up file does not exist
|
|