Skip to content

Commit 7b6241e

Browse files
Mika Lackmaniler
authored andcommitted
import expception
1 parent 12c82da commit 7b6241e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

upcloud_api/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import itertools
22
from time import sleep
33

4-
from upcloud_api import UpCloudClientError
4+
from upcloud_api import UpCloudClientError, UpCloudAPIError
55

66

77
def assignIfExists(opts, default=None, **kwargs):
@@ -14,7 +14,7 @@ def assignIfExists(opts, default=None, **kwargs):
1414
return default
1515

1616

17-
def try_it_n_times(operation, expected_error_codes, custom_error='operation failed', n=5):
17+
def try_it_n_times(operation, expected_error_codes, custom_error='operation failed', n=10):
1818
"""
1919
Try a given operation (API call) n times.
2020

0 commit comments

Comments
 (0)