fix crash on save as going to overwrite
@@ -141,6 +141,8 @@ class Mutator(app.selectable.Selectable):
def isSafeToWrite(self):
if not os.path.exists(self.fullPath):
return True
+ if self.fileStat is None:
+ return False
s1 = os.stat(self.fullPath)
s2 = self.fileStat
app.log.info('st_mode', s1.st_mode, s2.st_mode)
