mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-13 08:46:09 +01:00
p3
This commit is contained in:
@@ -13,10 +13,10 @@ class FirewallUtilities:
|
||||
inst.preFlightsChecks.stdOut("Failed to apply rule: " + command + " Error #" + str(res), 1)
|
||||
return 0
|
||||
|
||||
except OSError, msg:
|
||||
except OSError as msg:
|
||||
inst.preFlightsChecks.stdOut("Failed to apply rule: " + command + " Error: " + str(msg), 1)
|
||||
return 0
|
||||
except ValueError, msg:
|
||||
except ValueError as msg:
|
||||
inst.preFlightsChecks.stdOut("Failed to apply rule: " + command + " Error: " + str(msg), 1)
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user