Changeset 11514:78a58779f084 in orange


Ignore:
Timestamp:
05/13/13 14:27:37 (11 months ago)
Author:
markotoplak
Branch:
default
rebase_source:
6b96d3f1ec1c25eec5c15321d1d011133ee34971
Message:

Databases update: ignore domains that do not exist on the server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWDatabasesUpdate.py

    r11513 r11514  
    367367    domains = serverFiles.listdomains() if domains is None else domains 
    368368    advance() 
    369     serverInfo = dict([(dom, serverFiles.allinfo(dom)) for dom in domains]) 
     369    serverInfo = {} 
     370    for dom in domains: 
     371        try: 
     372            serverInfo[dom] = serverFiles.allinfo(dom) 
     373        except Exception: #ignore inexistent domains 
     374            pass 
    370375    advance() 
    371376    return serverInfo 
Note: See TracChangeset for help on using the changeset viewer.