Skip to content

Commit

Permalink
In case of error downloading remote routes, don't delete the cache (s…
Browse files Browse the repository at this point in the history
…ee Issue #18).
  • Loading branch information
Javier Quinteros committed Mar 21, 2017
1 parent c6bf108 commit eca254b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routeutils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ def addRemote(fileName, url):
elif hasattr(e, 'code'):
logs.error('The server couldn\'t fulfill the request.')
logs.error('Error code: %s\n', e.code)
# I have to return because there is no data. Otherwise, the old
# data will be removed (see below).
return

name = fileName[:- len('.download')]
try:
Expand Down

0 comments on commit eca254b

Please sign in to comment.