lib/code_ownership/private.rb in code_ownership-1.33.0 vs lib/code_ownership/private.rb in code_ownership-1.33.1
- old
+ new
@@ -68,9 +68,11 @@
path = Object.const_source_location(klass.to_s)&.first
(path && Pathname.new(path).relative_path_from(Pathname.pwd).to_s) || nil
else
nil
end
+ rescue NameError
+ nil
end
#
# The output of this function is string pathnames relative to the root.
#