aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/isodumper.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 81843f8..e5f7dac 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -214,7 +214,11 @@ class IsoDumper:
self.logview.scroll_to_mark(mark, 0.05, True, 0.0, 1.0)
progress.set_fraction(float(indice)/100)
indice +=1
- os.fsync(ofc)
+ try:
+ os.fsync(ofc)
+ except:
+ self.logger(_("Writing error."))
+ self.emergency()
yield True
progress.set_fraction(1.0)
self.logger(_('Image ')+source.split('/')[-1]+_(' successfully written to')+target)