Update ferretmagic.py

Cancel redirect if needed