Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed May 28, 2024
1 parent 548ab2c commit 1d3727c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cvat-core/src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
//
// SPDX-License-Identifier: MIT

import { omit } from 'lodash';
import { detect } from 'detect-browser';
import PluginRegistry from './plugins';
import { EventScope } from './enums';
import { ArgumentError } from './exceptions';
import { omit } from 'lodash';

export interface SerializedEvent {
scope: EventScope;
Expand Down
2 changes: 1 addition & 1 deletion cvat/apps/events/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def to_internal_value(self, data):

try:
json_payload = json.dumps(json.loads(event.get("payload", "{}")))
except:
except json.JSONDecodeError:
raise serializers.ValidationError("JSON payload is not valid in passed event")

event.update({
Expand Down

0 comments on commit 1d3727c

Please sign in to comment.