Skip to content
Snippets Groups Projects
Commit c20d1da5 authored by Mikhail Karnevskiy's avatar Mikhail Karnevskiy
Browse files

Add check for missing tocken error

parent eb4ba6b5
No related branches found
No related tags found
1 merge request!160Feat: Add check for missing tocken error
...@@ -563,8 +563,11 @@ def get_from_db(device, constant, condition, empty_constant, ...@@ -563,8 +563,11 @@ def get_from_db(device, constant, condition, empty_constant,
except Exception as e: except Exception as e:
if verbosity > 0: if verbosity > 0:
print(e) print(e)
ntries = 0 if 'missing_token' in str(e):
break ntries -= 1
else:
ntries = 0
break
if ntries > 0: if ntries > 0:
if verbosity > 0: if verbosity > 0:
......
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