GoogleCloudPlatform / GoogleCloudPlatform/python-docs-samples

REGEX not matching all composer versions

Open
#12,580 0 comments 0 reactions 1 assignee Claimed by @engelke View on GitHub
priority: p2 samples triage me type: bug
Dominant language
Jupyter Notebook
Stars
8.1k
Forks
6.7k
Avg merge
4d 2h
Merged PRs (30d)
16

Description

## In which file did you encounter the issue?
File: `composer/tools/composer_dags.py`

## Did you change the file? If so, how?
No

## Describe the issue
The current regex expression does not work for environment versions that do not include minor and or patch

## Error
```
Traceback (most recent call last):
File "/home/rkillkelley/composer_dags.py", line 229, in
main(
File "/home/rkillkelley/composer_dags.py", line 168, in main
).groups()
AttributeError: 'NoneType' object has no attribute 'groups'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.