Commits

Michał Górny committed 00dfabd

Fix IOError when package.* file did not exist.

Now flaggie should be able to create package.* files if they don't
exist.

Comments (0)

Files changed (1)

lib/flaggie/packagefile.py

 			self.path = path
 			# _modified is for when items are removed
 			self._modified = False
+			if not os.path.exists(path):
+				return
 			f = codecs.open(path, 'r', 'utf8')
 			for l in f:
 				try: