From 6671090e31ab30711f169abfb61d880b50ba27d8 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 4 Feb 2022 18:07:47 +0000 Subject: Dictionary class. Reformat. --- errors.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'errors.py') diff --git a/errors.py b/errors.py index 5e7394b..b367263 100644 --- a/errors.py +++ b/errors.py @@ -1,3 +1,6 @@ +import os + + def device_error(): print( """ @@ -7,4 +10,17 @@ def device_error(): - Raspberry Pi 4 """ ) + os._exit(1) + quit() + + +def argument_error(data, datatype): + print( + """ + Invalid data type {} for {} + """.format( + data, datatype + ) + ) + os._exit(1) quit() -- cgit v1.2.3