From 1481c3d13e1842fcb4400c46f33a7e995ace151b Mon Sep 17 00:00:00 2001 From: A_D Date: Wed, 8 Jul 2020 21:24:15 +0200 Subject: [PATCH] Added todo, removed import Added a TODO on the incase plugins need it line, and removed the unused sys import --- companion.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/companion.py b/companion.py index 1cd202bb..f6496125 100644 --- a/companion.py +++ b/companion.py @@ -4,6 +4,8 @@ from builtins import object import base64 import csv 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 email.utils import parsedate import hashlib @@ -11,7 +13,6 @@ import numbers import os from os.path import join import random -import sys import time from traceback import print_exc import urllib.parse @@ -129,7 +130,7 @@ def listify(thing): return retval else: - raise ValueError("expected an array or sparse array") + raise ValueError("expected an array or sparse array, got {!r}".format(thing)) class ServerError(Exception):