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

Catch WebException when downloading metadata #1291

Merged
merged 1 commit into from Jul 17, 2015
Merged

Catch WebException when downloading metadata #1291

merged 1 commit into from Jul 17, 2015

Conversation

Postremus
Copy link
Contributor

We also continue with downloading metadata from other repositories
fixes part of #1238

We also continue with downloading metadata from other repositories
fixes part of #1238
@pjf
Copy link
Member

pjf commented Jul 16, 2015

On Linux/mono 3.2.8 and no internet connectivity hitting "refresh metadata" results in all metadata being lost with this change (no message or anything).

Having said that, we might have the same problem without this change, I haven't tested. :)

@Postremus
Copy link
Contributor Author

Yup, same thing happens without this change. Also when one repo failed to update, all would fail before.
This change at least continues to refresh on failure.

@@ -131,7 +131,16 @@ internal static void UpdateRegistry(Uri repo, Registry registry, KSP ksp, IUser
{
log.InfoFormat("Downloading {0}", repo);

string repo_file = Net.Download(repo);
string repo_file = String.Empty;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why initialise it to a value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, this isn't needed in csharp. That initialization should be removed.

RichardLake added a commit that referenced this pull request Jul 17, 2015
Catch WebException when downloading metadata
@RichardLake RichardLake merged commit 81fc312 into KSP-CKAN:master Jul 17, 2015
@HebaruSan HebaruSan added Core (ckan.dll) Issues affecting the core part of CKAN Pull request Network Issues affecting internet connections of CKAN labels Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core (ckan.dll) Issues affecting the core part of CKAN Network Issues affecting internet connections of CKAN Pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants