Skip to content

Commit

Permalink
Make sure target_url variable always exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenisanerd committed Jan 20, 2011
1 parent 211e419 commit 2186f55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ try:
if "target_url" in params:
target_url = params["target_url"]
del params["target_url"]

else:
target_url = None
if 'post_format' in params:
post_format = params['post_format']
del params['post_format']
Expand Down

0 comments on commit 2186f55

Please sign in to comment.