Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Add-ons: Handling ValueError due to connection problems #2239

Merged
merged 1 commit into from
Apr 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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