Skip to content

Commit

Permalink
Merge pull request #2239 from jerneju/value-addons-urllib
Browse files Browse the repository at this point in the history
[FIX] Add-ons: Handling ValueError due to connection problems
  • Loading branch information
janezd authored Apr 21, 2017
2 parents ce5df04 + 5e3d86b commit 3258354
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Orange/canvas/application/addons.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import sys
import sysconfig
import os
import logging
import re
import errno
import shlex
Expand Down Expand Up @@ -46,6 +47,8 @@
OSX_NSURL_toLocalFile
from ..help.manager import get_dist_meta, trim, parse_meta

log = logging.getLogger(__name__)

OFFICIAL_ADDONS = [
"Orange-Bioinformatics",
"Orange3-DataFusion",
Expand Down Expand Up @@ -492,13 +495,14 @@ def _set_packages(self, f):

try:
packages = f.result()
except (IOError, OSError) as err:
except (IOError, OSError, ValueError) as err:
message_warning(
"Could not retrieve package list",
title="Error",
informative_text=str(err),
parent=self
)
log.error(str(err), exc_info=True)
packages = []
except Exception:
raise
Expand Down

0 comments on commit 3258354

Please sign in to comment.