Skip to content
Snippets Groups Projects
Commit 99846dd1 authored by Martin Killenberg's avatar Martin Killenberg
Browse files

feat: improve error message for almeo data loggers

parent 0d9efab4
No related branches found
No related tags found
1 merge request!4chore: code cleanup
......@@ -58,7 +58,7 @@ class err_hdl(Exception):
try:
return function(*args, **kwargs)
except ExceptionToCheck:
print("Error occured in %s,'Retrying in %d seconds" %(function.__name__, mdelay))
print("ALMEO2490: Error occured in %s,'Retrying in %d seconds" %(function.__name__, mdelay))
time.sleep(mdelay)
mtries -= 1
mdelay += backoff
......@@ -95,7 +95,7 @@ class err_hdl(Exception):
except ExceptionToCheck as e:
print(str(type(e).__name__) + " occured in:\nfunction: %s\nmodule: %s" \
print('ALMEO2490: ' + str(type(e).__name__) + " occured in:\nfunction: %s\nmodule: %s" \
% (function.__name__,function.__module__))
print(traceback.print_tb(e.__traceback__))
......
......@@ -58,7 +58,7 @@ class err_hdl(Exception):
try:
return function(*args, **kwargs)
except ExceptionToCheck:
print("Error occured in %s,'Retrying in %d seconds" %(function.__name__, mdelay))
print("ALMEO710: Error occured in %s,'Retrying in %d seconds" %(function.__name__, mdelay))
time.sleep(mdelay)
mtries -= 1
mdelay += backoff
......@@ -95,7 +95,7 @@ class err_hdl(Exception):
except ExceptionToCheck as e:
print(str(type(e).__name__) + " occured in:\nfunction: %s\nmodule: %s" \
print('ALMEO710: ' + str(type(e).__name__) + " occured in:\nfunction: %s\nmodule: %s" \
% (function.__name__,function.__module__))
print(traceback.print_tb(e.__traceback__))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment