We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 947a0ed commit e197f53Copy full SHA for e197f53
lib/msf/core/modules/metadata/store.rb
@@ -56,7 +56,7 @@ def load_metadata
56
retries +=1
57
58
# Try to handle the scenario where the file is corrupted
59
- if (retries < 2 && ::File.exist?(@path_to_user_metadata))
+ if retries < 2 && @path_to_user_metadata && ::File.exist?(@path_to_user_metadata)
60
elog('Possible corrupt user metadata store, attempting restore')
61
FileUtils.remove(@path_to_user_metadata)
62
retry
0 commit comments