Skip to content

Commit 3d4baa2

Browse files
committed
fixup! ruff format
1 parent b338fe7 commit 3d4baa2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plottery/plottery.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import numpy as np
1010
import yaml
1111
from matplotlib.gridspec import GridSpec
12-
from optparse import OptionParser
12+
from optparse import OptionParser, OptionError
1313
import re
1414

1515
# ==============================================================
@@ -39,7 +39,8 @@ def main():
3939

4040
try:
4141
(options, args) = parser.parse_args()
42-
except:
42+
except OptionError as e:
43+
print(f"Argument error: {e}")
4344
parser.print_help()
4445
exit()
4546

0 commit comments

Comments
 (0)