diff --git a/clearml_agent/backend_api/session/jsonmodels/fields.py b/clearml_agent/backend_api/session/jsonmodels/fields.py index 722c833..d2d738a 100644 --- a/clearml_agent/backend_api/session/jsonmodels/fields.py +++ b/clearml_agent/backend_api/session/jsonmodels/fields.py @@ -134,7 +134,7 @@ class BaseField(object): def _validate_name(self): if self.name is None: return - if not re.match('^[A-Za-z_](([\w\-]*)?\w+)?$', self.name): + if not re.match(r'^[A-Za-z_](([\w\-]*)?\w+)?$', self.name): raise ValueError('Wrong name', self.name) def structue_name(self, default):