mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
requirements: Upgrade pyflakes to 2.0.0.
We fix a few errors that only the new version finds.
This commit is contained in:
@@ -205,7 +205,7 @@ def check_url(var_name: str, val: object) -> Optional[str]:
|
||||
try:
|
||||
validate(val)
|
||||
return None
|
||||
except ValidationError as err:
|
||||
except ValidationError:
|
||||
return _('%s is not a URL') % (var_name,)
|
||||
|
||||
def validate_field_data(field_data: ProfileFieldData) -> Optional[str]:
|
||||
|
||||
Reference in New Issue
Block a user