##// END OF EJS Templates
remove the unneeded if statment
Eyenpi -
r26654:3708b30a
parent child
Show More
@@ -270,15 +270,14 class CodeMagics(Magics):
270 return
270 return
271
271
272 expiry_days = 7
272 expiry_days = 7
273 if "e" in opts:
273 try:
274 try:
274 expiry_days = int(opts.get("e", 7))
275 expiry_days = int(opts.get("e", 7))
275 except ValueError as e:
276 except ValueError as e:
276 print(e.args[0].capitalize())
277 print(e.args[0].capitalize())
277 return
278 return
278 if expiry_days < 1 or expiry_days > 365:
279 if expiry_days < 1 or expiry_days > 365:
279 print("Expiry days should be in range of 1 to 365")
280 print("Expiry days should be in range of 1 to 365")
280 return
281 return
282
281
283 post_data = urlencode(
282 post_data = urlencode(
284 {
283 {
General Comments 0
You need to be logged in to leave comments. Login now