diff options
-rw-r--r-- | hazwaz/mixins.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/hazwaz/mixins.py b/hazwaz/mixins.py index 5720a38..25cc347 100644 --- a/hazwaz/mixins.py +++ b/hazwaz/mixins.py @@ -24,16 +24,10 @@ class ExternalEditorMixin: if editor: try: res = subprocess.call([editor, filepath]) - except FileNotFoundError as e: - if editor in str(e): - logging.info('Could not open file {} with {}'.format( - filepath, e_name - )) - else: - logging.warning("Could not open file {}".format( - filepath - )) - return False + except FileNotFoundError: + logging.info('Could not open file {} with {}'.format( + filepath, e_name + )) else: if res == 0: return True |