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

Merge branch 'feat/CalDB_communication' into 'master'

Feat: Add check for missing tocken error

See merge request detectors/pycalibration!160
parents eb4ba6b5 c20d1da5
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