diff --git a/lib/travis/advisory_locks.rb b/lib/travis/advisory_locks.rb
index <HASH>..<HASH> 100644
--- a/lib/travis/advisory_locks.rb
+++ b/lib/travis/advisory_locks.rb
@@ -9,7 +9,9 @@ module Travis
     attr_reader :lock_name, :transactional
 
     def initialize(lock_name, transactional = false)
-      raise StandardError, "lock name cannot be blank"
+      if lock_name.blank?
+        raise StandardError, "lock name cannot be blank"
+      end
       @lock_name = lock_name
     end
 
diff --git a/lib/travis/requests/services/receive.rb b/lib/travis/requests/services/receive.rb
index <HASH>..<HASH> 100644
--- a/lib/travis/requests/services/receive.rb
+++ b/lib/travis/requests/services/receive.rb
@@ -56,9 +56,7 @@ module Travis
 
           def with_transactional_advisory_lock
             result = nil
-            logger.info "payload : #{payload.inspect}"
-            logger.info "repository : #{payload.repository.inspect}"
-            Travis::AdvisoryLocks.exclusive("receive-repo:#{payload.repository['github_id']}", 300) do
+            Travis::AdvisoryLocks.exclusive("receive-repo:#{payload.repository[:github_id]}", 300) do
               ActiveRecord::Base.connection.begin_db_transaction
               result = yield
               ActiveRecord::Base.connection.commit_db_transaction
silly me, i didn’t comment the lock_name check