mik-laj commented on a change in pull request #10282:
URL: https://github.com/apache/airflow/pull/10282#discussion_r468150167



##########
File path: airflow/models/dagbag.py
##########
@@ -343,9 +344,10 @@ def _process_modules(self, filepath, mods, 
file_last_changed_on_disk):
                 self.import_errors[dag.full_filepath] = f"Invalid Cron 
expression: {cron_e}"
                 self.file_last_changed[dag.full_filepath] = \
                     file_last_changed_on_disk
-            except AirflowDagCycleException as cycle_exception:
+            except (AirflowDagCycleException,
+                    AirflowClusterPolicyViolation) as exception:

Review comment:
       This change is not covered by the unit tests.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to