From e184af88f03ab04e52ffd8b8f7dfb1d69a0b315c Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Thu, 26 Apr 2018 14:12:45 +0200 Subject: [PATCH] [accounts][migrations] Fix urlparse import --- beat/web/accounts/migrations/0011_check_all_accounts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beat/web/accounts/migrations/0011_check_all_accounts.py b/beat/web/accounts/migrations/0011_check_all_accounts.py index 933e06415..ad6ec562c 100755 --- a/beat/web/accounts/migrations/0011_check_all_accounts.py +++ b/beat/web/accounts/migrations/0011_check_all_accounts.py @@ -39,7 +39,10 @@ from django.contrib.auth.models import User from datetime import datetime, timedelta import datetime import re -from urlparse import urlparse +try: + from urlparse import urlparse +except ImportError: + from urllib.parse import urlparse import simplejson as json -- GitLab