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
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import requests
|
||||
import json
|
||||
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(
|
||||
data[combine_key]
|
||||
)
|
||||
except KeyError:
|
||||
except KeyError as e:
|
||||
handle_print("Something went wrong: %s." % e, response_url)
|
||||
sys.exit(1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue