X-Git-Url: http://git.tremily.us/?p=cookbook.git;a=blobdiff_plain;f=cookbook%2Fcookbook.py;h=24a70feeda9eb34ac151543eadadbf4810267534;hp=fdfae2c5053cf216e000e3de9d7b8bbd564e3c52;hb=2de218d56ff661a9689fb0c47a384dbb1f20e929;hpb=271e7ea917b8a93afa54578d49f3fdfaf4916c16 diff --git a/cookbook/cookbook.py b/cookbook/cookbook.py index fdfae2c..24a70fe 100644 --- a/cookbook/cookbook.py +++ b/cookbook/cookbook.py @@ -353,6 +353,8 @@ class Directions (list): for paragraph in self])) def from_yaml(self, string): + if string == None: + return while len(self) > 0: self.pop() for paragraph in string.split('\n\n'):