Skip to content

Commit 2c0944e

Browse files
committed
bump uploader to v3
1 parent a6bd2f6 commit 2c0944e

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,11 @@ jobs:
9999
repository_url: https://test.pypi.org/legacy/
100100

101101
- name: Temporarily Store the Python Package in GitHub # for convenient reference, troubleshooting, investigation, etc...
102-
uses: actions/upload-artifact@v2
102+
uses: actions/upload-artifact@v3
103103
with:
104104
name: netfoundry-pypi-${{ github.run_id }}
105105
path: dist/netfoundry-*.tar.gz
106+
if-no-files-found: error
106107

107108
- name: Append 'latest' tag if release
108109
env:

netfoundry/organization.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -571,12 +571,8 @@ def get_network(self, network_id: str, embed: str = None, accept: str = None):
571571
logging.warning(f"not requesting '{type}', not a resource type in the network domain")
572572

573573
url = self.audience+'core/v2/networks/'+network_id
574-
try:
575-
network, status_symbol = get_generic_resource(url=url, headers=headers, accept=accept, proxies=self.proxies, verify=self.verify, **params)
576-
except Exception as e:
577-
raise RuntimeError(f"failed to get network from url: '{url}', caught {e}")
578-
else:
579-
return(network)
574+
network, status_symbol = get_generic_resource(url=url, headers=headers, accept=accept, proxies=self.proxies, verify=self.verify, **params)
575+
return(network)
580576

581577
def find_network_groups_by_organization(self, **kwargs):
582578
"""Find network groups as a collection.

0 commit comments

Comments
 (0)