Skip to content

Commit

Permalink
Merge branch 'team-matchmaking' into tmm
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatsik committed Feb 13, 2021
2 parents 1ece1c9 + e4b02d0 commit f082841
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fa/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,10 @@ def downloadMap(name, silent=False):
link = name2link(name)
ret, msg = _doDownloadMap(name, link, silent)
if not ret:
name = name.replace(" ", "_")
link = name2link(name)
ret, msg = _doDownloadMap(name, link, silent)
if msg is None:
name = name.replace(" ", "_")
link = name2link(name)
ret, msg = _doDownloadMap(name, link, silent)
if not ret:
msg()
return ret
Expand Down
1 change: 1 addition & 0 deletions src/news/wpapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ def finishedDownload(self, reply):
def download(self, page=1, perpage=10):
url = QtCore.QUrl(WPAPI_ROOT.format(page=page, perpage=perpage))
request = QNetworkRequest(url)
request.setAttribute(QNetworkRequest.FollowRedirectsAttribute, True)
self.nam.get(request)
4 changes: 4 additions & 0 deletions src/vault/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ def downloadVaultAssetNoMsg(url, target_dir, exist_handler, name, category,

if result == VaultDownloadDialog.CANCELED:
logger.warning("{} Download canceled for: {}".format(capitCat, url))
msg = lambda: QtWidgets.QMessageBox.information(
None,
"{} has not been downloaded".format(capitCat),
("{} download has been cancelled.".format(capitCat)))
if result in [VaultDownloadDialog.DL_ERROR, VaultDownloadDialog.UNKNOWN_ERROR]:
logger.warning("Vault download failed, {} probably not in vault (or broken).".format(category))
msg = lambda: QtWidgets.QMessageBox.information(
Expand Down

0 comments on commit f082841

Please sign in to comment.