diff options
author | Papoteur <papoteur@mageia.org> | 2018-10-16 21:42:24 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2018-10-16 21:48:35 +0200 |
commit | 9ecdfc44bc96c877c2bb107cc0f327a38707e58d (patch) | |
tree | 0db513a0d84ecd62c8292acfe7fea650d78c8f88 | |
parent | 4a9c58c02b6153516c6305093f70c165f7013672 (diff) | |
download | isodumper-9ecdfc44bc96c877c2bb107cc0f327a38707e58d.tar isodumper-9ecdfc44bc96c877c2bb107cc0f327a38707e58d.tar.gz isodumper-9ecdfc44bc96c877c2bb107cc0f327a38707e58d.tar.bz2 isodumper-9ecdfc44bc96c877c2bb107cc0f327a38707e58d.tar.xz isodumper-9ecdfc44bc96c877c2bb107cc0f327a38707e58d.zip |
Cleaning
-rwxr-xr-x | backend/raw_write.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/backend/raw_write.py b/backend/raw_write.py index ed617cd..40dc99b 100755 --- a/backend/raw_write.py +++ b/backend/raw_write.py @@ -30,7 +30,6 @@ import os import io import gettext -import pydbus from subprocess import call import hashlib import gnupg @@ -46,18 +45,17 @@ class Dumper(object): try: ifc=io.open(source, "rb",1) except: - message = _('Reading error.')+ source - self.logger(message) - self.return_state = False - self.return_message = message - self.finished.set() - return + message = _('Reading error.')+ source + self.return_state = False + self.return_message = message + self.finished.set() + return else: try: ofc= io.open(target, 'wb',0) except: message = _("You don't have permission to write to the device {}").format(target) - self.logger(message) + logging.error(message) self.return_state = False self.return_message = message self.finished.set() @@ -77,7 +75,7 @@ class Dumper(object): buf=ifc.read(bs) except: message = _("Reading error.") - self.logger(message) + logging.error(message) self.return_state = False self.return_message = message self.finished.set() @@ -107,7 +105,7 @@ class Dumper(object): ofc.close() except: message = _("Writing error.") - self.logger(message) + logging.error(message) self.return_message = message self.return_state = False return |