From 7647edfee97c576ee4d8db6869b8080700cf17ae Mon Sep 17 00:00:00 2001 From: Gino D Date: Wed, 11 Jan 2023 12:42:00 +0100 Subject: [PATCH] Fixed bug --- src/picowatch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/picowatch.py b/src/picowatch.py index 9139272..9a0aa9c 100644 --- a/src/picowatch.py +++ b/src/picowatch.py @@ -31,9 +31,11 @@ import readline import tempfile import binascii import textwrap +import traceback import mpy_cross import subprocess + from serial import Serial from dotenv import dotenv_values from typing import List, Optional, Tuple, Union @@ -974,7 +976,7 @@ while True: case ['put' | 'upload', path]: picowatch.upload(path) case ['get' | 'download', path]: - picowatch.download(file) + picowatch.download(path) case ['diff' | 'compare', file, *use_vim]: picowatch.compare(file, use_vim=len(use_vim) > 0) case ['mod' | 'status']: @@ -1000,5 +1002,6 @@ while True: print(f'Picowatch: "{message}" does not matched any keywords. See "help" for more informations.') except Exception as e: print(str(e)) + traceback.print_exception(e) except (KeyboardInterrupt, EOFError): sys.exit('Picowatch Terminal disconnected!')