From 0c61e853404374ad59ca3e252bad125232096eff Mon Sep 17 00:00:00 2001 From: rr- Date: Mon, 26 Sep 2016 22:51:00 +0200 Subject: [PATCH] server: fix lint --- server/szurubooru/func/net.py | 4 ++-- .../tests/search/configs/test_user_search_config.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/szurubooru/func/net.py b/server/szurubooru/func/net.py index 62ac4c3..fb0c427 100644 --- a/server/szurubooru/func/net.py +++ b/server/szurubooru/func/net.py @@ -9,5 +9,5 @@ def download(url): try: with urllib.request.urlopen(request) as handle: return handle.read() - except Exception as e: - raise errors.ProcessingError('Error downloading %s (%s)' % (url, e)) + except Exception as ex: + raise errors.ProcessingError('Error downloading %s (%s)' % (url, ex)) diff --git a/server/szurubooru/tests/search/configs/test_user_search_config.py b/server/szurubooru/tests/search/configs/test_user_search_config.py index 37e641a..f54ba45 100644 --- a/server/szurubooru/tests/search/configs/test_user_search_config.py +++ b/server/szurubooru/tests/search/configs/test_user_search_config.py @@ -101,6 +101,7 @@ def test_filter_by_name_that_looks_like_range( db.session.flush() verify_unpaged(input, expected_user_names) + @pytest.mark.parametrize('input,expected_user_names', [ ('', ['u1', 'u2']), ('u1', ['u1']),