title: python 3 - urllib issue
body: <p>I'm using python 3.3.0 in Windows 7.
  I have two files: dork.txt and fuzz.py</p>
  
  <p>dork.txt contains following:</p>
  
  <pre><code>/about.php?id=1
  /en/company/news/full.php?Id=232
  /music.php?title=11
  </code></pre>
  
  <p>fuzz.py contains following:</p>
  
  <pre><code>srcurl = "ANY-WEBSITE"
  drkfuz = open("dorks.txt", "r").readlines()
  print("\n[+] Number of dork names to be fuzzed:",len(drkfuz))
  
  for dorks in drkfuz:
      dorks = dorks.rstrip("\n")
      srcurl = "http://"+srcurl+dorks
  
      requrl = urllib.request.Request(srcurl) 
  
      #httpreq = urllib.request.urlopen(requrl)
  
      # Starting the request
      try:
          httpreq = urllib.request.urlopen(requrl)
      except urllib.error.HTTPError as  e:
          print ("[!] Error code: ",  e.code)
          print("")
          #sys.exit(1)
  
      except urllib.error.URLError as  e:
          print ("[!] Reason: ",  e.reason)
          print("")
          #sys.exit(1)  
  
      #if e.code != 404:
      if httpreq.getcode() == 200:
          print("\n*****srcurl********\n",srcurl)
          return srcurl
  </code></pre>
  
  <p>So, when I enter the correct website name which has <code>/about.php?id=1</code>, it works fine.
  But when I provide the website which has <code>/en/company/news/full.php?Id=232</code>, it first 
  prints <code>Error code:  404</code> and then gives me the following error: <code>UnboundLocalError: local 
  variable 'e' referenced before assignment</code> or <code>UnboundLocalError: local variable 'httpreq' referenced before assignment</code></p>
  
  <p>I can understand that if the website doesn't have the page which contains <code>/about.php?id=1</code>, it gives <code>Error code:  404</code> but why  it's not going back in the <code>for</code> loop to check the remaining dorks in the text file??? Why it stops here and throws an error?</p>
  
  <p>I want to make a script to find out valid page from just a website address like: <code>www.xyz.com</code> </p>