Show More
@@ -270,15 +270,14 b' class CodeMagics(Magics):' | |||
|
270 | 270 | return |
|
271 | 271 | |
|
272 | 272 | expiry_days = 7 |
|
273 | if "e" in opts: | |
|
274 | try: | |
|
275 | expiry_days = int(opts.get("e", 7)) | |
|
276 | except ValueError as e: | |
|
277 | print(e.args[0].capitalize()) | |
|
278 | return | |
|
279 | if expiry_days < 1 or expiry_days > 365: | |
|
280 | print("Expiry days should be in range of 1 to 365") | |
|
281 | return | |
|
273 | try: | |
|
274 | expiry_days = int(opts.get("e", 7)) | |
|
275 | except ValueError as e: | |
|
276 | print(e.args[0].capitalize()) | |
|
277 | return | |
|
278 | if expiry_days < 1 or expiry_days > 365: | |
|
279 | print("Expiry days should be in range of 1 to 365") | |
|
280 | return | |
|
282 | 281 | |
|
283 | 282 | post_data = urlencode( |
|
284 | 283 | { |
General Comments 0
You need to be logged in to leave comments.
Login now