mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 21:46:12 +02:00
🐛 Fix minor issues on migration code
This commit is contained in:
parent
8d0afd8c96
commit
3f97b3a112
2 changed files with 9 additions and 3 deletions
|
@ -945,6 +945,12 @@
|
||||||
:file-id (str (:id fdata))
|
:file-id (str (:id fdata))
|
||||||
:id (str (:id mobj)))
|
:id (str (:id mobj)))
|
||||||
|
|
||||||
|
(instance? org.graalvm.polyglot.PolyglotException cause)
|
||||||
|
(l/inf :hint "skip processing media object: invalid svg found"
|
||||||
|
:team-id (str team-id)
|
||||||
|
:file-id (str (:id fdata))
|
||||||
|
:id (str (:id mobj)))
|
||||||
|
|
||||||
(= (:type edata) :not-found)
|
(= (:type edata) :not-found)
|
||||||
(l/inf :hint "skip processing media object: underlying object does not exist"
|
(l/inf :hint "skip processing media object: underlying object does not exist"
|
||||||
:team-id (str team-id)
|
:team-id (str team-id)
|
||||||
|
|
|
@ -287,7 +287,7 @@
|
||||||
sprocs (ps/create :permits max-procs)
|
sprocs (ps/create :permits max-procs)
|
||||||
|
|
||||||
cache (if (int? cache)
|
cache (if (int? cache)
|
||||||
(cache/create :executor :same-thread
|
(cache/create :executor executor
|
||||||
:max-items cache)
|
:max-items cache)
|
||||||
nil)
|
nil)
|
||||||
migrate-team
|
migrate-team
|
||||||
|
@ -303,14 +303,14 @@
|
||||||
:skip-on-graphics-error? skip-on-graphic-error?)))
|
:skip-on-graphics-error? skip-on-graphic-error?)))
|
||||||
|
|
||||||
(when (string? label)
|
(when (string? label)
|
||||||
(report! main/system label team-id (tpoint) nil))
|
(report! main/system team-id label (tpoint) nil))
|
||||||
|
|
||||||
(catch Throwable cause
|
(catch Throwable cause
|
||||||
(l/wrn :hint "unexpected error on processing team (skiping)"
|
(l/wrn :hint "unexpected error on processing team (skiping)"
|
||||||
:team-id (str team-id)
|
:team-id (str team-id)
|
||||||
:cause cause)
|
:cause cause)
|
||||||
(when (string? label)
|
(when (string? label)
|
||||||
(report! main/system label team-id (tpoint) (ex-message cause))))
|
(report! main/system team-id label (tpoint) (ex-message cause))))
|
||||||
|
|
||||||
(finally
|
(finally
|
||||||
(ps/release! sjobs)))))
|
(ps/release! sjobs)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue