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 | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -8,7 +8,7 @@ msgid "" | ||||
| msgstr "" | ||||
| "Project-Id-Version: PACKAGE VERSION\n" | ||||
| "Report-Msgid-Bugs-To: \n" | ||||
| "POT-Creation-Date: 2021-02-23 12:30+0100\n" | ||||
| "POT-Creation-Date: 2021-02-23 13:20+0100\n" | ||||
| "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||||
| "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||||
| "Language-Team: LANGUAGE <LL@li.org>\n" | ||||
| @@ -347,10 +347,11 @@ msgid "filter rules" | ||||
| msgstr "" | ||||
|  | ||||
| #: documents/serialisers.py:52 | ||||
| msgid "Invalid regular expresssion: " | ||||
| #, python-format | ||||
| msgid "Invalid regular expresssion: %(error)s" | ||||
| msgstr "" | ||||
|  | ||||
| #: documents/serialisers.py:376 | ||||
| #: documents/serialisers.py:378 | ||||
| #, python-format | ||||
| msgid "File type %(type)s not supported" | ||||
| msgstr "" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler