Fix an unused import and a missing exception alias
This commit is contained in:
parent
cc069d77f1
commit
1cff785a4f
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -113,7 +112,7 @@ def paginated_get(url, params, combine_key=None, response_url=None):
|
||||||
result.extend(data) if combine_key is None else result.extend(
|
result.extend(data) if combine_key is None else result.extend(
|
||||||
data[combine_key]
|
data[combine_key]
|
||||||
)
|
)
|
||||||
except KeyError:
|
except KeyError as e:
|
||||||
handle_print("Something went wrong: %s." % e, response_url)
|
handle_print("Something went wrong: %s." % e, response_url)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue