File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ def generate_message(self, jail_data):
4040 message = ''
4141
4242 if self ._identifier :
43- message += '*Stats for {0 }*\n ' . format ( self . _identifier )
43+ message += f '*Stats for { self . _identifier } *\n '
4444
4545 for jail in jail_data :
46- message += ">*{0 }*\n >\t Failed: {1 } ({2 }), Banned: {3 } ({4 })\n " . format ( * jail )
46+ message += f ">*{ jail [ 0 ] } *\n >\t Failed: { jail [ 1 ] } ({ jail [ 2 ] } ), Banned: { jail [ 3 ] } ({ jail [ 4 ] } )\n "
4747
4848 return message
4949
@@ -71,4 +71,4 @@ def slack_output(message, self):
7171 )
7272
7373 if response .status_code != 200 :
74- sys .exit ("Slack webhook connection failed with error: {0 } ({1})" . format ( response .text , response . status_code ) )
74+ sys .exit (f "Slack webhook connection failed with error: { response . text } ({ response .status_code } )" )
You can’t perform that action at this time.
0 commit comments