Fix missing variable prefix in error message
authorMagnus Hagander <magnus@hagander.net>
Thu, 4 Apr 2019 07:53:42 +0000 (09:53 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 4 Apr 2019 07:54:04 +0000 (09:54 +0200)
code/pgeusite/cmutuel/management/commands/cmscrape.py

index 66d39a79fcbaade586e38f5991958c0b942505fa..907cf2cff1eb915e0dc9fcc5d2b7401366e46a75 100755 (executable)
@@ -62,7 +62,7 @@ class SessionWrapper(object):
             redirrectto = [redirectto, ]
         if not r.headers['Location'] in redirectto:
             raise CommandError("Received unexpected redirect from %s to '%s' (expected %s)" % (
-                fetchpage, headers['Location'], redirectto))
+                fetchpage, r.headers['Location'], redirectto))
         return r.headers['Location']