mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix for if site is missing
This commit is contained in:
parent
6cfbf54560
commit
a5af32d143
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class ScreenshotWorker
|
||||||
def perform(username, path)
|
def perform(username, path)
|
||||||
|
|
||||||
site = Site[username: username]
|
site = Site[username: username]
|
||||||
return if site.is_deleted
|
return if site.nil? || site.is_deleted
|
||||||
|
|
||||||
queue = Sidekiq::Queue.new self.class.sidekiq_options_hash['queue']
|
queue = Sidekiq::Queue.new self.class.sidekiq_options_hash['queue']
|
||||||
logger.info "JOB ID: #{jid} #{username} #{path}"
|
logger.info "JOB ID: #{jid} #{username} #{path}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue