Skip to content
/ beam Public
forked from apache/beam

Commit

Permalink
Better error when Python xlang download jar not available (apache#32269)
Browse files Browse the repository at this point in the history
* Better error when Python xlang download jar not available

* address comment
  • Loading branch information
Abacn committed Aug 21, 2024
1 parent 65f556d commit 512b52a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/python/apache_beam/utils/subprocess_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ def local_jar(cls, url, cache_dir=None):
os.rename(cached_jar + '.tmp', cached_jar)
except URLError as e:
raise RuntimeError(
'Unable to fetch remote job server jar at %s: %s' % (url, e))
f'Unable to fetch remote job server jar at {url}: {e}. If no '
f'Internet access at runtime, stage the jar at {cached_jar}')
return cached_jar

@classmethod
Expand Down

0 comments on commit 512b52a

Please sign in to comment.