A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/315596.html below:

urllib.open problem

urllib.open problem urllib.open problemAstan Chee stanc at al.com.au
Wed Sep 14 19:19:53 EDT 2005
Hi Guys,
    I have a python script which runs perfectly on my machine.
    However a machine that I tested it on gives the following error 
message:

    Traceback (most recent call last):
      File "whip.py", line 616, in OnRebootRunning
      File "whip.py", line 626, in RebootCustom
      File "urllib.pyc", line 77, in urlopen
      File "urllib.pyc", line 170, in open
    TypeError: cannot concatenate 'str' and 'NoneType' objects

    The code snipplet where this error
    happens is
    f = urllib.urlopen("http://www.hotmail.com/)
    notes= f.readlines()

Does anyone know what causes this error? Im perplexed because it works 
on some machines and it doesnt work on other computers although they all 
have the same spec.
    Thanks for the help
    Cheers
    Stan

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4