diff --git a/lib/tool_shed/webapp/model/__init__.py b/lib/tool_shed/webapp/model/__init__.py index a9ab285106c..b45b802686c 100644 --- a/lib/tool_shed/webapp/model/__init__.py +++ b/lib/tool_shed/webapp/model/__init__.py @@ -180,7 +180,8 @@ class User(Base, Dictifiable): :return: void """ self.set_password_cleartext( - ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(length))) + "".join(random.SystemRandom().choice(string.ascii_letters + string.digits) for _ in range(length)) + ) class PasswordResetToken(Base):