Skip to content

Commit

Permalink
Robust-ifying
Browse files Browse the repository at this point in the history
  • Loading branch information
crislawrence committed Jun 30, 2019
1 parent 5899428 commit f605fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/users/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def get_user_directory_path(self):
:return: path to the user's directory.
"""
user_directory_name = User.USER_DIRECTORY_NAME_TEMPLATE.substitute(user_id=self.id)
return pathlib.Path(os.path.join(os.environ.get('UPLOAD_FOLDER'), user_directory_name))
return str(pathlib.Path(os.path.join(os.environ.get('UPLOAD_FOLDER'), user_directory_name)))

def reassign_visitor_spreadsheets(self, visitor):
"""
Expand Down

0 comments on commit f605fd3

Please sign in to comment.