User Profile

Collapse

Profile Sidebar

Collapse
jaybee
jaybee
Last Activity: Mar 18 '07, 06:07 PM
Joined: Mar 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jaybee
    replied to TRY: and Error Handling
    Thanks to all, the program is much more stable and runs for days at a time now. It will occasionally lock up and crash, this time with a different error message. Any ideas on this:

    Code:
    Traceback (most recent call last):
      File "C:\shrubmed\programs\new_day.py", line 60, in <module>
        cross_reference()
      File "C:\shrubmed\programs\new_day.py", line 42, in cross_reference
    ...
    See more | Go to post

    Leave a comment:


  • jaybee
    replied to TRY: and Error Handling
    Thanks, all. I am incorporating these suggestions.
    See more | Go to post

    Leave a comment:


  • jaybee
    replied to TRY: and Error Handling
    When using "except IOerror:" the script wouldn't run - message that IOerror was undefined. I thought IOerror was a built in exception?! I am assuming that the trigger error is the socket timeout. My script calls another library, which calls httplib - does that make it harder to handle the error?

    The outline of what I have running now looks like this:

    Code:
    for each query_string:
         try:
    ...
    See more | Go to post

    Leave a comment:


  • jaybee
    started a topic TRY: and Error Handling

    TRY: and Error Handling

    I've written a program that queries a remote site to download lots of snippets of data from a public server - one every 3 seconds or so. The basic script works, and sometimes it runs for hours. But at other times, it locks up and gives an error message like this:

    Code:
      File "C:\Python25\lib\urllib.py", line 325, in open_http
        h.endheaders()
      File "C:\Python25\lib\httplib.py", line 856, in
    ...
    See more | Go to post
No activity results to display
Show More
Working...