changeset 7781:2a6c3eb4e059

chore: lint script
author John Rouillard <rouilj@ieee.org>
date Mon, 04 Mar 2024 21:23:40 -0500
parents 9ba04f37896f
children 8bdee8a1ed09
files scripts/copy-user.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/copy-user.py	Mon Mar 04 21:18:51 2024 -0500
+++ b/scripts/copy-user.py	Mon Mar 04 21:23:40 2024 -0500
@@ -16,7 +16,9 @@
 """
 
 from __future__ import print_function
+
 import sys
+
 import roundup.instance
 
 
@@ -50,7 +52,7 @@
     for userid in userids:
         try:
             userid = str(int(userid))
-        except ValueError as why:
+        except ValueError:
             print("Not a numeric user id: %s  Skipping ..." % (userid,))
             continue
         if userid not in userlist:
@@ -66,7 +68,7 @@
             db2.user.lookup(user['username'])
             print("User %s: Username '%s' exists in target instance. Skipping ..." % (userid, user['username']))
             continue
-        except KeyError as why:
+        except KeyError:
             pass
         print("Copying user %s (%s) ..." % (userid, user['username']))
         db2.user.create(**user)

Roundup Issue Tracker: http://roundup-tracker.org/