nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 73536b605b83492b4bfb6bb88ab0bd44e883ebdd
parent dc9397ed779a6cddcc0766304e28eaf0d8d895fe
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 14 Sep 2018 06:24:31 -0400

Fix bad exception handling in Python 3.4

Diffstat:
Mnncli/nncli.py | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/nncli/nncli.py b/nncli/nncli.py @@ -146,10 +146,6 @@ def cli_note_import(self, from_stdin): self.logger.log('New note created') self.ndb.import_note(note) self.ndb.sync_now() - except json.decoder.JSONDecodeError as ex: - self.logger.log( - '(IMPORT) Decoding JSON has failed: {}'.format(ex)) - sys.exit(1) except ValueError as ex: self.logger.log('(IMPORT) ValueError: {}'.format(ex)) sys.exit(1)