mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	fix pycodestyle and messages
This commit is contained in:
		| @@ -48,7 +48,10 @@ class MatchingModelSerializer(serializers.ModelSerializer): | ||||
|             try: | ||||
|                 re.compile(match) | ||||
|             except Exception as e: | ||||
|                 raise serializers.ValidationError(_("Invalid regular expresssion: ") + str(e)) | ||||
|                 raise serializers.ValidationError( | ||||
|                     _("Invalid regular expresssion: %(error)s") % | ||||
|                     {'error': str(e)} | ||||
|                 ) | ||||
|         return match | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler