From decaa80bdea98d523c5ef44499778729c834442f Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: May 03 2018 00:24:49 +0000 Subject: fix urlparse invocation urlparse is the module, urlparse.urlparse() is the function. Error found by pylint. --- diff --git a/greenwave/resources.py b/greenwave/resources.py index ef377e6..c401675 100644 --- a/greenwave/resources.py +++ b/greenwave/resources.py @@ -29,7 +29,7 @@ def retrieve_rev_from_koji(nvr): proxy = xmlrpclib.ServerProxy(current_app.config['KOJI_BASE_URL']) build = proxy.getBuild(nvr) try: - url = urlparse(build['extra']['source']['original_url']) + url = urlparse.urlparse(build['extra']['source']['original_url']) if not url.scheme.startswith('git'): raise BadGateway('Error occurred looking for the "rev" in koji.') return url.fragment