Handle missing token exception
This commit is contained in:
parent
e00189e21f
commit
2ac1b84133
2
vm.py
2
vm.py
@ -458,7 +458,7 @@ def main(gargv):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
exit(main(sys.argv[1:]))
|
exit(main(sys.argv[1:]))
|
||||||
except ovh.exceptions.InvalidCredential:
|
except (ovh.exceptions.InvalidCredential, ovh.exceptions.NotCredential):
|
||||||
req = ovh.Client().request_consumerkey([
|
req = ovh.Client().request_consumerkey([
|
||||||
{'method': 'GET', 'path': '/ip'},
|
{'method': 'GET', 'path': '/ip'},
|
||||||
{'method': 'GET', 'path': '/dedicated/server'},
|
{'method': 'GET', 'path': '/dedicated/server'},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user