We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f435bb7 commit c364fb7Copy full SHA for c364fb7
ckanext/ogdchcommands/logic.py
@@ -148,7 +148,7 @@ def get_path(id):
148
filepath = os.path.join(directory, id[6:])
149
150
if filepath != os.path.realpath(filepath):
151
- raise logic.ValidationError({"upload": ["Invalid storage path"]})
+ raise ValidationError({"upload": ["Invalid storage path"]})
152
153
return filepath
154
@@ -160,7 +160,7 @@ def get_directory(id):
160
real_storage = os.path.realpath(storage_path)
161
directory = os.path.join(real_storage, id[0:3], id[3:6])
162
if directory != os.path.realpath(directory):
163
- raise logic.ValidationError({"upload": ["Invalid storage directory"]})
+ raise ValidationError({"upload": ["Invalid storage directory"]})
164
return directory
165
166
0 commit comments