From 05f9e231a0aafed57b1f38ad6a1e6a5838b05cc5 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 23 Oct 2018 00:39:14 +0100 Subject: Full flake8 3.5 cleanup --- lib/extras.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/extras.py') diff --git a/lib/extras.py b/lib/extras.py index 4dea3f9..ade0869 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -31,10 +31,7 @@ import time as _time import re as _re from collections import namedtuple, OrderedDict -try: - import logging as _logging -except: - _logging = None +import logging as _logging import psycopg2 from psycopg2 import extensions as _ext @@ -189,7 +186,7 @@ class DictRow(list): def get(self, x, default=None): try: return self[x] - except: + except Exception: return default def copy(self): -- cgit v1.2.1