Skip to content

Commit

Permalink
Catch all exceptions when opening file in Tabulator
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Aug 18, 2020
1 parent cef00d7 commit 0963482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/hdx/utilities/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ratelimit import sleep_and_retry, RateLimitDecorator
from requests import Request
from six.moves.urllib.parse import urlsplit, urlunsplit, parse_qsl, urlencode
from tabulator.exceptions import TabulatorException

from hdx.utilities import raisefrom
from hdx.utilities.path import get_temp_dir
Expand Down Expand Up @@ -353,7 +352,7 @@ def get_tabular_stream(self, url, **kwargs):
self.response = tabulator.Stream(url, **kwargs)
self.response.open()
return self.response
except TabulatorException as e:
except Exception as e:
raisefrom(DownloadError, 'Getting tabular stream for %s failed!' % url, e)

def get_tabular_rows_as_list(self, url, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion src/hdx/utilities/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.8
2.3.9

0 comments on commit 0963482

Please sign in to comment.