mirror of
https://github.com/ansible/awx.git
synced 2026-09-03 02:18:28 -02:30
Modernize Python 2 code to get ready for Python 3
This commit is contained in:
@@ -356,7 +356,7 @@ class SmartFilterField(models.TextField):
|
||||
value = urllib.unquote(value)
|
||||
try:
|
||||
SmartFilter().query_from_string(value)
|
||||
except RuntimeError, e:
|
||||
except RuntimeError as e:
|
||||
raise models.base.ValidationError(e)
|
||||
return super(SmartFilterField, self).get_prep_value(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user