From 865c3011e5e603226f6ea0e45b08e6d3407b270c Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 19 Sep 2020 03:59:37 -0700 Subject: [PATCH] Some linting. --- etiquette/objects.py | 1 - etiquette/photodb.py | 1 - etiquette/searchhelpers.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/etiquette/objects.py b/etiquette/objects.py index 8237acd..91eda0f 100644 --- a/etiquette/objects.py +++ b/etiquette/objects.py @@ -4,7 +4,6 @@ but are returned by the PDB accesses. ''' import os import PIL.Image -import string import send2trash import traceback diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 4ef1a73..84cf286 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -4,7 +4,6 @@ import logging import os import random import sqlite3 -import string import tempfile import time diff --git a/etiquette/searchhelpers.py b/etiquette/searchhelpers.py index 5e4bce1..13bcd6c 100644 --- a/etiquette/searchhelpers.py +++ b/etiquette/searchhelpers.py @@ -105,7 +105,7 @@ def minmax(key, value, minimums, maximums, warning_bag=None): except exceptions.OutOfOrder as exc: if warning_bag: - warning_bag.add(e.error_message) + warning_bag.add(exc.error_message) return else: raise