Skip to content

Commit a7b8037

Browse files
committed
tidy
1 parent 121ec39 commit a7b8037

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

countess/core/plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def execute(
165165
if sql:
166166
try:
167167
return ddbc.sql(sql)
168-
except duckdb.duckdb.DatabaseError as exc:
168+
except duckdb.ProgrammingError as exc:
169169
logger.warning(exc)
170170
return None
171171

countess/gui/main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333

3434
preview_row_limit: Optional[int] = 10000000
3535

36-
usage = (
37-
"""usage: countess_gui [--log LEVEL] [INIFILE]
36+
usage = """usage: countess_gui [--log LEVEL] [INIFILE]
3837
3938
Start the CountESS GUI.
4039
@@ -44,8 +43,8 @@
4443
--preview LIMIT set preview mode row limit (default: %s)
4544
--log LEVEL set log level to LEVEL
4645
INIFILE load configuration file
47-
"""
48-
% preview_row_limit or "NONE"
46+
""" % (
47+
preview_row_limit or "NONE"
4948
)
5049

5150

countess/plugins/group_by.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import logging
22
from typing import Iterable, Optional
33

4-
from duckdb import DuckDBPyConnection, DuckDBPyRelation
5-
64
from countess import VERSION
75
from countess.core.parameters import BooleanParam, PerColumnArrayParam, TabularMultiParam
86
from countess.core.plugins import DuckdbSqlPlugin

0 commit comments

Comments
 (0)