mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 10:53:26 +03:00
Added todo, removed import
Added a TODO on the incase plugins need it line, and removed the unused sys import
This commit is contained in:
parent
09f5dfff23
commit
1481c3d13e
@ -4,6 +4,8 @@ from builtins import object
|
|||||||
import base64
|
import base64
|
||||||
import csv
|
import csv
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
# TODO: see https://github.com/EDCD/EDMarketConnector/issues/569
|
||||||
from http.cookiejar import LWPCookieJar # No longer needed but retained in case plugins use it
|
from http.cookiejar import LWPCookieJar # No longer needed but retained in case plugins use it
|
||||||
from email.utils import parsedate
|
from email.utils import parsedate
|
||||||
import hashlib
|
import hashlib
|
||||||
@ -11,7 +13,6 @@ import numbers
|
|||||||
import os
|
import os
|
||||||
from os.path import join
|
from os.path import join
|
||||||
import random
|
import random
|
||||||
import sys
|
|
||||||
import time
|
import time
|
||||||
from traceback import print_exc
|
from traceback import print_exc
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
@ -129,7 +130,7 @@ def listify(thing):
|
|||||||
return retval
|
return retval
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise ValueError("expected an array or sparse array")
|
raise ValueError("expected an array or sparse array, got {!r}".format(thing))
|
||||||
|
|
||||||
|
|
||||||
class ServerError(Exception):
|
class ServerError(Exception):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user