Skip to content

Commit 94b7124

Browse files
committed
chore: lint script
1 parent 8dcb828 commit 94b7124

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/copy-user.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"""
1717

1818
from __future__ import print_function
19+
1920
import sys
21+
2022
import roundup.instance
2123

2224

@@ -50,7 +52,7 @@ def copy_user(home1, home2, *userids):
5052
for userid in userids:
5153
try:
5254
userid = str(int(userid))
53-
except ValueError as why:
55+
except ValueError:
5456
print("Not a numeric user id: %s Skipping ..." % (userid,))
5557
continue
5658
if userid not in userlist:
@@ -66,7 +68,7 @@ def copy_user(home1, home2, *userids):
6668
db2.user.lookup(user['username'])
6769
print("User %s: Username '%s' exists in target instance. Skipping ..." % (userid, user['username']))
6870
continue
69-
except KeyError as why:
71+
except KeyError:
7072
pass
7173
print("Copying user %s (%s) ..." % (userid, user['username']))
7274
db2.user.create(**user)

0 commit comments

Comments
 (0)