Skip to content

Commit 3448595

Browse files
committed
Let ruff fix 2 simple lint errors in the sbin folder as pointed out by
`make lint-python LINT_ENFORCE_DIRS=sbin`
1 parent ca267e8 commit 3448595

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sbin/grid_accounting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
% os.getpid()
117117
logger.info(msg)
118118
print("%s %s" % (datetime.datetime.now(), msg))
119-
except Exception as exc:
119+
except Exception:
120120
throttle = True
121121
msg = "(%s) Caught unexpected exception:\n%s" \
122122
% (os.getpid(), traceback.format_exc())

sbin/grid_quota.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
% os.getpid()
129129
logger.info(msg)
130130
print("%s %s" % (datetime.datetime.now(), msg))
131-
except Exception as exc:
131+
except Exception:
132132
throttle = True
133133
msg = "(%s) Caught unexpected exception:\n%s" \
134134
% (os.getpid(), traceback.format_exc())

0 commit comments

Comments
 (0)