File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ def _update_error_stack(plugin_name):
15
15
plugin_meta = pkg_resources .get_distribution (plugin_name )
16
16
17
17
data = hash_pkg (pkgpath = str (Path (plugin_meta .module_path , plugin_name )))
18
- signature = plugin_meta .get_metadata ("{ }.sig". format ( plugin_name ) )
19
- pubkey_path = str (Path (base_meta .egg_info , "{ }.pub". format ( base_name ) ))
18
+ signature = plugin_meta .get_metadata (f" { plugin_name } .sig" )
19
+ pubkey_path = str (Path (base_meta .egg_info , f" { base_name } .pub" ))
20
20
verify (pubkey_path = pubkey_path , data = data , signature = signature )
21
- logger .info ("DataJoint verified plugin `{}` detected." . format ( plugin_name ) )
21
+ logger .info (f "DataJoint verified plugin `{ plugin_name } ` detected." )
22
22
return True
23
23
except (FileNotFoundError , InvalidSignature ):
24
- logger .warning ("Unverified plugin `{}` detected." . format ( plugin_name ) )
24
+ logger .warning (f "Unverified plugin `{ plugin_name } ` detected." )
25
25
return False
26
26
27
27
You can’t perform that action at this time.
0 commit comments